JSON object example
A single record with named fields. This is the most common JSON shape for APIs and config files.
{
"name": "Ada Lovelace",
"role": "engineer",
"active": true,
"score": 98.5
}Copy a valid JSON example, then edit it in the JSON editor. These samples show objects, arrays, nested data, API responses, and config files.
A single record with named fields. This is the most common JSON shape for APIs and config files.
{
"name": "Ada Lovelace",
"role": "engineer",
"active": true,
"score": 98.5
}A list of values. Spreadsheets and CSV converters work best when the top level is an array of objects.
[
{ "id": 1, "name": "Ada" },
{ "id": 2, "name": "Grace" }
]Objects and arrays can contain other objects. Use a formatter or tree view when the nesting gets deep.
{
"user": {
"email": "ada@example.com",
"address": { "city": "London", "country": "UK" }
},
"tags": ["math", "computing"]
}A typical REST payload with metadata plus a data array.
{
"ok": true,
"page": 1,
"data": [
{ "id": "u_1", "name": "Ada" },
{ "id": "u_2", "name": "Grace" }
]
}Application settings often live in a JSON object with booleans, numbers, and nested options.
{
"theme": "dark",
"retry": 3,
"features": {
"autosave": true,
"telemetry": false
}
}This page is a gallery of valid JSON you can copy — not a full editor. Use the JSON editor to create a file, the validator to check a broken snippet, and JSON to CSV when the sample is an array of objects.
Valid JSON uses double quotes for keys and strings, no trailing commas, and matching brackets. The samples on this page all parse successfully.
Use an object for one record with named fields. Use an array for a list of records. CSV conversion works best with an array of objects.
Yes. Click Open in JSON editor to load the sample into the editor, then format, validate, or download it.
Standard JSON does not allow comments or single quotes. Remove them and validate the file with the JSON validator.
Paste it into the JSON validator to see the exact error line.