RFC 8259 — The JavaScript Object Notation (JSON) Data Interchange Format
The grammar and interoperability requirements used for strict JSON parsing and serialization.
RFC 8259 — The JavaScript Object Notation (JSON) Data Interchange FormatHow jsonformatters.org interprets strict JSON, protects editor data, applies resource limits, reviews tool behavior, and uses relevant standards.
The baseline is RFC 8259 JSON: object names and strings use double quotes; values are objects, arrays, strings, numbers, true, false, or null. Comments, trailing commas, single-quoted strings, undefined, NaN, and Infinity are not valid JSON. The validator reports these as syntax problems instead of silently treating them as another language.
Object member order is retained where an operation does not explicitly sort keys, and array order is significant. Duplicate object names are legal in the grammar but produce unpredictable interoperability because software may keep different occurrences. Validate and remove duplicates before treating a document as an interchange contract.
Public tool actions run in the browser. Pasted editor values are not sent to the jsonformatters.org application server, analytics, or advertising code. URL import is a separate, explicit action that contacts the public HTTPS address you provide. Encoded share links place data in the URL and are convenient, not encrypted or suitable for secrets.
Each action is assigned a versioned engine and explicit settings. For the same engine version, input, and settings, deterministic actions are designed to return the same result. Byte, combined-input, output, nesting, node, and visible-change limits protect browser responsiveness; reaching a limit produces a reported limit state rather than an intentionally partial result presented as complete.
Every public route comes from a typed tool definition that joins its title, purpose, accepted input, primary action, output type, engine, settings, limits, and localized guidance. The simple workspace exposes the main workflow; controls that do not apply to that tool are not part of that workflow.
Examples shown with a tool are run through its registered engine rather than copied as an unrelated illustration. Changes are checked against valid, invalid, empty, and limit-sized inputs, and browser tests cover the rendered workflow. Generated schemas, repaired JSON, and format conversions remain proposals to review against your own application rules.
JSON has a small core specification, while pointers, patches, schemas, and format conversions add separate rules. The references below define the relevant boundary; they do not imply that YAML or XML has a universal lossless mapping to JSON.
The grammar and interoperability requirements used for strict JSON parsing and serialization.
RFC 8259 — The JavaScript Object Notation (JSON) Data Interchange FormatThe escaped path notation used to identify values inside a JSON document.
RFC 6901 — JavaScript Object Notation (JSON) PointerThe add, remove, replace, move, copy, and test operations used by JSON Patch workflows.
RFC 6902 — JavaScript Object Notation (JSON) PatchThe vocabulary targeted by generated starter schemas; inference is not proof that unseen data conforms.
JSON Schema Draft 2020-12The YAML data model reference used when reviewing JSON-to-YAML representation choices.
YAML 1.2.2 specificationThe XML syntax reference; JSON-to-XML key, attribute, and array mappings remain explicit tool conventions.
Extensible Markup Language (XML) 1.0Formatting changes presentation, validation checks syntax, comparison explains differences, and conversion changes representation. Start with the narrowest action that matches your task and verify any result that will enter a production system.
JavaScript numbers cannot exactly represent every integer or decimal allowed by the JSON grammar. Duplicate keys, very large numbers, repair guesses, inferred schemas, XML element naming, YAML scalar resolution, CSV flattening, and truncated comparisons all need domain review. Preserve an original copy when precision or auditability matters.
A successful parse proves syntactic JSON, not business validity, safety, or compatibility with an API. Use a domain schema or application validator after syntax validation, inspect downloads before distributing them, and never put credentials or private payloads in an encoded share URL or issue report.