Functions4 public, 1 private
Returns if the provided data can be serialized as JSON string. An example for data that cannot be serialized: binary | |||
public | boolean | canBeSerializedAsJson | |
required | any | data | |
Type sensitive serialization of the provided value as JSON. Supports simple values, arrays and structs. Use javaCast() to set the desired type. | |||
public | string | jsonSerialize | |
any | value | ||
Escapes the provided value according to JSON specs. | |||
public | string | jsonEscape | |
required | string | value | |
boolean | preserveSpecialChars | false | |
Serializes the provided data as JSON. | |||
public | string | serializeJSON | |
required | string<JSON>, struct | data | |
struct | OPTIONS | {} | |
option | boolean | lowercase | false |
option | boolean | prettyprint | false |