Functions5 public, 1 private

Returns if the provided data can be serialized as JSON string.
publicbooleancanBeSerializedAsJson
requiredanydata
Wraps ColdFusion's [isJSON] function and enforces specifications according to RFC 4627.
publicbooleanisSerializableJSON
requiredanyjson
Type sensitive serialization of the provided value as JSON. Supports simple values, arrays and structs. Use javaCast() to set the desired type.
publicstringjsonSerialize
requiredanyvalue
Escapes the provided value according to JSON specs.
publicstringjsonEscape
requiredstringvalue
booleanpreserveSpecialCharsfalse
Serializes the provided data as JSON.
publicstringserializeJSON
requiredstring<JSON>, structdata
structOPTIONS{}
optionbooleanlowercasefalse
optionbooleanprettyprintfalse