JSON
{
"name": "River Library",
"open": true,
"books": 120,
"tags": ["public", "reading"]
}No matching tools. Try another keyword.
JSONWAY / FIELD GUIDE
Start with an API response. Learn where JSON came from, where its limits are, and how other formats and open-source tools fit into your workflow.
JSON (JavaScript Object Notation) is a text format for serializing structured data. Its syntax derives from JavaScript object literals, but it is language independent: Java, Python, Rust and C# can all use it. It is neither a database nor a programming language for executing logic. See RFC 8259 · JSON and ECMA-404.
RFC 8259 §1 traces JSON to the object literals of ECMAScript’s third edition. It was initially designed as a minimal, portable, textual subset of JavaScript. Web frontends and backends need to exchange nested records, lists and simple values; JSON expresses these with a small set of structures that the receiver can parse. Its simple, language-independent model, paired with parsing and serialization libraries in different languages, lets browsers, servers and other systems share a data contract. Numeric and type behavior still needs agreement across those implementations.
Douglas Crockford’s document described JSON and registered application/json; top-level text was limited to an object or array.
The first edition, published in October, independently defined the JSON interchange syntax.
Published in March, it replaced RFC 4627, allowed any JSON value at the top level and clarified interoperability.
RFC 8259 replaced RFC 7159 in December; the second ECMA-404 edition appeared that month. Their grammar aligns, while the RFC also gives interoperability guidance.
JSON has objects, arrays, strings, numbers, booleans and null. Object keys and strings need double quotes; objects use {} and arrays use []. The literals true, false and null are lowercase. The current grammar allows a string, number or any other JSON value at the top level; an API may still require an object.
RFC 8259 · JSON · §§ 2–8
Start with the receiving system’s contract, then consider data shape and who maintains it. This comparison is about fit, not a ranking by age or speed.
| Format | Good fit | Strengths | Boundaries |
|---|---|---|---|
| JSON | APIs and cross-language data exchange | Objects, arrays and simple types with broad library support. | No comments, native dates or binary type; numeric precision depends on the parser. |
| XML | Documents, established protocols, namespaced data | Elements, attributes, mixed content, namespaces and DTD / XML Schema tooling. | More verbose; mapping attributes, text and repeated elements to JSON needs a convention. |
| YAML | Human-maintained configuration | Comments, indentation and anchors help maintain configuration. | Whitespace and implicit typing need care; versions, schemas and parsers differ. |
| Markdown | Documentation, tutorials and README files | Lightweight markup designed for people to read and write. | Not a general structured-data interchange format; dialect extensions vary. |
| CSV | Spreadsheet exchange and flat records | Rows and columns are convenient for tabular data. | No native nesting or universal field types; agree on delimiters, encoding and headers. |
| TOML | Application and developer-tool configuration | Keys, tables, comments and date-time types make configuration explicit. | Designed for configuration rather than JSON’s arbitrary top-level values and interchange model. |
YAML 1.2 aims for JSON compatibility, but accepted input and resolved types still depend on version, schema and implementation. Markdown primarily represents documents, not an equivalent JSON substitute. RFC 4180 describes CSV quoting and line breaks; spreadsheet applications may also use other dialects.
W3C · XML 1.0 · YAML 1.2.2 · CommonMark 0.31.2 · RFC 4180 · CSV · TOML 1.0.0
These original library examples contain no personal data. They express similar information, but are not equivalent documents that can be round-tripped without conventions.
{
"name": "River Library",
"open": true,
"books": 120,
"tags": ["public", "reading"]
}<library>
<name>River Library</name>
<open>true</open>
<books>120</books>
<tags><tag>public</tag><tag>reading</tag></tags>
</library>name: River Library
open: true
books: 120
tags:
- public
- reading# River Library
Open: yes. Books: 120.
- public
- readingname,open,books,tags
River Library,true,120,"public,reading"name = "River Library"
open = true
books = 120
tags = ["public", "reading"]In this CSV example, the comma within tags is an application-level list delimiter, so the whole cell is quoted. CSV itself does not define arrays. XML text for open and books does not automatically gain JSON boolean or number types. The Markdown version is a human-readable description; core CommonMark does not define table syntax.
Use browser tools for a quick inspection, a CLI for repeated jobs, libraries in product code and a schema for a data contract. The projects below are independent third parties; JSONWay does not own or represent them.
CLI filtering and batch processing
jq 'select(.open) | {name, books}' library.jsonMIT core; documentation and bundled dependencies have separate notices · jq · license
Java
Parse, generate and map Java objects on a server; choose modules for your version.
Apache-2.0 (2.x) · Jackson 2.x · license
.NET / C#
Serialize and deserialize inside applications with an explicit data contract.
MIT (.NET runtime) · .NET runtime · license
Rust
Use Serde for typed conversion or work with a generic Value.
MIT OR Apache-2.0 · serde_json · MIT · serde_json · Apache-2.0
JavaScript / TypeScript
Validate structure against a selected JSON Schema draft, beyond pretty-printing.
MIT · Ajv · license
Extended syntax for hand-written files
Supports comments and other extensions; convert with a compatible parser before sending to a strict JSON API.
MIT · JSON5 · license
Documentation and licenses checked November 19, 2026. The Jackson license link is for 2.x; other links point to the official documentation or branches consulted. Check LICENSE / NOTICE files for the actual release and dependencies you use. This guide links to projects and does not bundle their code.
Choose your current task for a starting point. The complete comparison and examples remain available above.
JSONWay processes JSON and similar data tools in your browser; IP and DNS lookups contact third parties; some tools may save local drafts. Pages load resources and Baidu visit analytics, without sending tool inputs as analytics events. Redact sensitive data and read each tool’s notes.
JSON is a text format; a JavaScript object is a runtime value. Objects may contain methods or undefined, which strict JSON does not allow. Use a parser such as JSON.parse rather than eval for untrusted data.
There is no universal result independent of payload, parser, protocol and document model. JSON often fits ordinary APIs; XML may fit namespaces, mixed content or existing contracts. This guide makes no untested performance ranking.
It only shows that the parser accepted the syntax. JSON Schema can check required fields, types and ranges. Business rules such as inventory accuracy or authorization remain application concerns.
No. YAML tags and aliases, XML attributes and mixed content, and CSV types and nesting need mapping rules. Keep the original and verify fields, arrays and numbers with a small sample first.
No. These are independent third-party projects linked to their official sources. JSONWay browser tools help with quick inspection and conversion; libraries and CLIs help with integration and automation.
This guide draws on the following specifications and official project documentation. Examples are original. Sources were checked on November 19, 2026; consult the originals for subsequent changes.