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 reference of valid JSON, 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.
Double-quoted keys and strings, no trailing commas, and matching brackets. Every sample here parses.
An object is one named record. An array is a list. Spreadsheets prefer an array of objects.
Yes. Open in JSON editor loads the sample so you can format, validate, or download it.
Standard JSON does not allow comments or single quotes. Remove them and validate.
Paste it into the JSON validator.