PLPayload LabJS SDK · 1.0.0
Payload Lab / JSON syntax and types

JSON syntax and types

Technical notes for working with the tools and examples in this documentation.

ConceptExampleNotes
Object{"id":7}Unordered name/value members. Duplicate names are not interoperable.
Array[1,2,3]Ordered list; positions start at zero.
String"hello"Double quotes are required.
Number-1.25e3Decimal exponent notation is allowed.
BooleantrueOnly lowercase true or false.
NullnullExplicit absence of a value.
Escape"a\nb"A newline within a string is encoded as \n.
Unicode"\u0041"Four hexadecimal digits after \u encode a UTF-16 code unit.
Invalid comment// noteJSON has no comment syntax.
Invalid comma[1,2,]A trailing comma is not allowed.
Invalid numberNaNNaN and Infinity are not JSON values.
Leading zero012Leading zeros are not allowed in integers.
Root pointer""Selects the entire document.
Escaped pointer/a~1bSelects the property named a/b.