GUIDE

What is JSON?

A small format for sharing structured data.

On this page

Start with a value

JSON can contain an object, array, string, number, true, false or null. Objects use quoted property names; arrays keep values in order.

{"name":"Ada","active":true,"tools":["JSON","CSV"]}

Check the syntax

Use double quotes around names and strings, commas between items and no trailing comma. JSON does not allow comments. The formatter points to syntax errors; it does not validate a business schema.

Keep exact values

Store identifiers and very large exact numbers as strings. JavaScript number precision applies to these tools. CSV does not retain JSON types: a CSV round trip reads cells as text.