FORMATBITS / FIELD NOTES
Uncategorized
-
How to Navigate Nested Arrays in a JSON API Response
Start with parsed data, identify the root, and follow one key or array index at a time. This guide uses an original example to explain nested access, representative sampling, documentation notation, and explicit decisions for missing or unexpected data.
-
How to Read Unicode Escape Sequences in JSON
Learn to distinguish Unicode escape notation in JSON source from the parsed string. Follow the G clef example through paired escapes, literal backslashes, and alternative source spellings, then use practical checks to investigate formatter output and downstream handling.
-
Why Large Integer IDs Change When You Parse JSON
A valid JSON number can lose digits when a parser converts it to JavaScript Number, before formatting begins. Preserve identifiers with strings, retain numeric tokens for text formatting, or parse into exact integer representations—and verify the entire round trip.
-
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.