A string has valid JSON syntax if it conforms to the JSON standard syntax as specified in http://www.json.org/. Syntax for the JSON type conforms to this standard, which is shown below.
Syntax
{ object | array }
Syntax Elements
- object
-
{ [ name/value_pair [,...] ] }
- array
-
[ [ value [,...] ] ]
You must type the colored or bold brackets. - name/value_pair
-
"string" : { "string" | number | object | array | null | true | false }
- string
- A JSON string literal enclosed in double quotation marks.
- number
- A JSON numeric literal.