Functions8 public, 1 private

Returns if the provided data can be serialized as JSON string. An example for data that cannot be serialized: binary
publicbooleancanBeSerializedAsJson
requiredanydata
Deserializes JSON with additional features: - support for comments like ##, // and /* */ - unquoted keys - single quotes - trailing commas - leading/trailing decimal point & leading zeros
publicanydeserializeJSON
anydata
structOPTIONS{}
optionbooleanthrowOnErrorfalse
Deserializes JSON with additional features: - {} = LinkedHashMap - [] = ArrayList - support for comments like ##, // and /* */ - unquoted keys - single quotes - trailing commas - leading/trailing decimal point & leading zeros
publicanyfromJSON
anydata
structOPTIONS{}
optionbooleanthrowOnErrorfalse
Historical alias for function [deserializeJSON].
publicanyjsonDeserialize
anydata
structOPTIONS{}
Historical alias for function [serializeJSON].
publicstringjsonSerialize
anydata
structOPTIONS{}
Escapes the provided value according to JSON specs.
publicstringjsonEscape
requiredstringvalue
booleanpreserveSpecialCharsfalse
Stringifies the provided data as JSON. Components may implement a function named [serialize] to expose custom information.
publicstringserializeJSON
anydata
structOPTIONS{}
optionbooleanlowercasefalse
transform all keys to uppercase
optionbooleanuppercasefalse
pretty-print JSON
optionbooleanprettyprintfalse
optionstringprettyIndentchr(9)
optionstringprettyNewlinechr(10)
optionbooleanthrowOnErrorfalse
Fastest way to stringify (null, boolean, number, string, array, struct) JSON. Components are converted to null.
publicstringtoJSON
anydata