FORMATBITS / FIELD NOTES
siteadmin
-
Null, Empty String, or Missing: An API Field Contract Worksheet
Separate property presence, value acceptance, and fallback policy before implementing API field checks. Follow a completed hypothetical contract example, then use its decision matrix to review your own endpoint without assuming undocumented behavior.
-
How to Decode and Format JSON Stored as an Escaped API String
Parse the outer API response, inspect the selected field, and decode it only when the API contract identifies it as JSON text. This guide uses constructed JavaScript examples to separate decoding from formatting, preserve meaningful escapes, and handle failures at the correct layer.
-
JSON Indentation Options: Choosing Spaces, Tabs, and Width for Readable Output
Compare two-space, four-space, tab, and compact JSON indentation. Learn how each choice affects readability, version-control diffs, and file size. Get practical guidance for selecting and enforcing a consistent style across your team’s editors, APIs, and repositories.
-
URL Spaces: When to Use %20 and When to Use +
A space can be written as %20 with percent-encoding or represented by + under a form-encoding convention. Choose the convention for the component and receiver, preserve literal plus signs, and make each encoding or decoding step explicit.
-
JSON Error Line Number Finder: How to Locate Syntax Errors Quickly
A JSON error position tells you where parsing stopped, which may be just after the actual mistake. Use this guide to navigate large payloads, inspect nearby punctuation, fix common syntax errors, and revalidate without losing track of your changes.
-
URL Encoder/Decoder Bookmarklet: Encode and Decode URLs on the Fly
A browser-based URL encoder/decoder bookmarklet that lets you encode or decode URL components and full URLs while reading or debugging a page. Learn about encoding modes, installation, security boundaries, mobile-first UX, and query-string editing—all in one tool.
-
FormatBits Overview: A Practical Guide to Online Formatting and Developer Utilities
FormatBits is a lightweight browser-based workbench for three narrow jobs: JSON formatting, validation, and minification; URL encoding and decoding; and Unix timestamp conversion. Use it for fast inspection and handoff, then reproduce important results with your project’s runtime, libraries, or tests.
-
Unix Timestamp Converter: Convert Epoch Time to Human-Readable Dates
FormatBits is a browser-based developer data-formatting toolkit. This guide describes a timestamp converter that turns Unix epoch values into readable dates and readable dates back into epoch values. It requires an explicit seconds-or-milliseconds choice, shows UTC and local views, accepts negative and fractional input, and explains practical considerations for logs, APIs, databases, scheduling, privacy, accessibility,…
-
Pretty Print JSON in Browser: Format, Validate & Debug Instantly
A practical guide to pretty-printing, validating, and debugging JSON in the browser with a client-side workflow. Covers formatting and minification, URL encoding, timestamp conversion, privacy, and useful developer features.
-
JSON Validator: Catch Syntax Errors and Schema Issues Before They Break Your API
This guide explains how to paste JSON into json-format, run the syntax check, interpret duplicate-key and formatting results, understand when JSON Schema validation is needed, read line and column error details, and use url-codec and timestamp-convert for related API inputs.