Skip to content

JSON constants

Include: Use System\Json.pkg

JSON constants identify stringification whitespace styles and JSON value types.

Whitespace constants

Constant Description
jpWhitespace_Plain Writes JSON without added whitespace.
jpWhitespace_Spaced Writes JSON with compact spacing.
jpWhitespace_Pretty Writes JSON with readable indentation.

JSON type constants

Constant Description
jsonTypeNull JSON null.
jsonTypeBoolean JSON boolean.
jsonTypeDouble JSON floating-point number.
jsonTypeInteger JSON integer number.
jsonTypeObject JSON object.
jsonTypeArray JSON array.
jsonTypeString JSON string.

Syntax

Define jpWhitespace_Plain
Define jpWhitespace_Spaced
Define jpWhitespace_Pretty
Define jsonTypeNull
Define jsonTypeBoolean
Define jsonTypeDouble
Define jsonTypeInteger
Define jsonTypeObject
Define jsonTypeArray
Define jsonTypeString

See also