Which two of the following statements about JSON are true?
In JSON syntax, curly braces { } are used to define objects — including objects nested inside other objects or arrays — as unordered collections of key/value pairs. Square brackets [ ] are used to define arrays, which are ordered lists of values. Therefore square brackets create arrays (not objects), and curly braces create objects, including nested objects (not arrays). This is defined in the JSON specification (ECMA-404 / RFC 8259).
{ }
[ ]
Community Discussion