JSON Sample Files
JSON (JavaScript Object Notation) is a lightweight data interchange format. It is easy for humans to read and write, and easy for machines to parse and generate. JSON has become the standard format for web APIs and configuration files.
Back to Example data filesDownload JSON Sample Files
| File | File type | File size | Rows/Records | Mime type | Download example file |
|---|---|---|---|---|---|
| JSON Sample - Simple Object | JSON | 147 B | 1 | application/json | Download example file |
| JSON Sample - Array of 10 Objects | JSON | 3 KB | 10 | application/json | Download example file |
| JSON Sample - Nested Structure | JSON | 11 KB | Nested | application/json | Download example file |
| JSON Sample - 1,000 Records | JSON | 352 KB | 1,000 | application/json | Download example file |
| JSON Sample - GeoJSON | JSON | 2 KB | 5 features | application/geo+json | Download example file |
| JSON Sample - API Response | JSON | 6 KB | 10 | application/json | Download example file |
| JSON Sample - Config File | JSON | 624 B | N/A | application/json | Download example file |
| JSON Sample - package.json | JSON | 1 KB | N/A | application/json | Download example file |
About JSON files
JSON files use a simple syntax of key-value pairs and arrays. The format supports strings, numbers, booleans, null values, objects, and arrays. Unlike XML, JSON has no closing tags or attributes, which keeps it compact.
Most programming languages have built-in JSON support. In JavaScript you get JSON.parse() and JSON.stringify(). Python has the json module. PHP has json_encode() and json_decode(). Parsing JSON is fast and straightforward in every language.
Our sample JSON files range from a simple flat object to a 1000-record array, plus specialized formats like GeoJSON and a mock API response. If you need something more structured, check out our XML samples or YAML samples.