json
What is a .json file?
application/json
JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.
How to use a .json file
Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.
Download example .json files
- Flat JSON ArrayA flat JSON array of ten simple objects — the baseline case for JSON parsing and mapping.
- Deeply Nested JSONA deeply nested JSON document with objects inside arrays inside objects — for testing recursive parsing and path access.
- Intentionally Invalid JSONAn intentionally invalid JSON file with a trailing comma and a missing closing brace — for testing parser error handling and messages. Not valid JSON by design.
- Fake Users Dataset (JSON, 500 records)The 500-row users dataset as a JSON array — the format twin of the CSV version, for testing import and conversion.
- Fake Orders Dataset (JSON, 1000 records)The 1000-row orders dataset as JSON — the format twin of the CSV version, relational to the users dataset.
- JSON Schema (User)A draft-07 JSON Schema describing a user object — for testing schema validators and schema-aware tooling.
- OpenAPI 3.1 Spec (JSON)A small but complete OpenAPI 3.1 description (two paths, three schemas) in JSON — for testing API tooling, mock servers, client codegen, and docs generators.
- API Response — Users Page 1 (JSON)Page 1 of a paginated JSON API response (users), with page metadata and a `hasMore` flag. Paired with page 2 for testing pagination and infinite-scroll logic.
and 13 more in the library.