ToolSura
    ToolSura
    HomeToolsBlog
    Home/Authors/Marco Bianchi
    Marco Bianchi

    Marco Bianchi

    I approach JSON as a format with a grammar stricter than its reputation suggests, and most of the malformed JSON I see is legal-looking in a way the specification does not allow. Comments are the first one. JSON has none. JSONC, JSON5 and the trailing-comma tolerance that half the tooling quietly accepts are extensions, and code written against them fails at runtime in a parser that never granted the extension.

    Trailing commas sit in the same category. Duplicate keys are the second. The behaviour is defined as last-one-wins, so a document carrying two password fields parses cleanly and silently discards one of them. That is a parsing decision hiding inside what looks like an authoring mistake.

    The third is number handling. JSON numbers are arbitrary precision on paper, and most language runtimes convert them to a 64-bit float the moment they parse. An integer beyond 2^53 comes back rounded, which matters for identifiers and for any value holding money. Formatting is where I spend more attention than the topic usually gets. The tension is between a stable format, so diffs show real changes, and a compact one, so the payload stays small.

    Minified JSON is unreadable and diffs as a single changed line. Pretty-printed JSON is readable and diffs usefully. Choose the readable one and let a compression layer handle size. I also cover the encoding details deciding whether a document is valid at all: UTF-8 with no byte order mark, correct escaping inside strings, and the fact that a bare control character inside a string makes the document invalid.

    Expertise

    JSON parsing and formattingDeveloper tooling

    Written by Marco (4)

    • Two HTTP header blocks side by side: a request sending Content-Type application/json with Accept application/json, application/problem+json, and a 403 response returning Content-Type application/problem+json

      JSON Content-Type: application/json vs text/json

      Which Content-Type do you send for JSON? What application/json and text/json actually are, why the +json suffix exists, and how Accept negotiation works.

    • A branching index card of JSON topics fanning out to schema, YAML, CSV, JWT, and diff destinations

      JSON Guide: 21 Tools and Guides Indexed by Problem

      Index of 21 JSON tools and guides: schema generation and validation, YAML and CSV conversion, JWT decoding, diffing. Pick the right one by problem.

    • Browser-based JSON tools as a JSONFormatter alternative: format, validate, and diff locally

      Best JSONFormatter Alternative: Private JSON Tools

      Looking for a JSONFormatter alternative? ToolSura's JSON tools run 100% in your browser: no upload, no account, no ads. Format, validate, and diff safely.

    • A JSON file with a comment line highlighted, splitting into two labelled paths — one lenient editor accepting it, one strict parser throwing a parse error

      Can You Put Comments in JSON? What Actually Works

      JSON has no comment token. So why does settings.json have comments? The four dialects that accept them, and why stripping them with a regex eats your URLs.

    About ToolSura

    ToolSura offers 80+ free, privacy-first online tools that run 100% in your browser — no uploads, no logins. Learn more about our mission →

    ToolSuraPrivacy-First Tools

    Free utilities that run in your browser. No trackers, no accounts, no uploads.

    All Systems Operational

    Product

    • Free Online Tools
    • Contact
    • FAQs
    • About

    Legal

    • Privacy Policy
    • Cookie Policy
    • Terms & Conditions

    Resources

    • Blog
    • Brand
    • Help

    Social Links

    • Bluesky
    • Mastodon
    • X
    • Product Hunt
    • GitHub
    • LinkedIn
    • DEV.to
    • YouTube

    © 2026 ToolSura. Free tools that run in your browser.

    Remote-First / Based in India

    Technical Manifesto

    Private • Client-Side • No Uploads

    ToolSura on Nick Launches
    Browser-Native
    Privacy-First