Lucee object methods reference

Object Method String.deserializeJSON

Converts a JSON (JavaScript Object Notation) or JSON5 string data representation into CFML data, such as a struct or array.
String.deserializeJSON([boolean strictMapping,[string format]]):any

Category

string,parsing,json,javascript,json5

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
strictMapping boolean  No true A Boolean value that specifies whether to convert the JSON strictly. When true, the function will adhere to strict JSON mapping rules.
format string  No json5 The format of the input string. Possible values are:
  • **json**: Standard JSON format
  • **json5**: JSON5 format which allows additional features such as comments and unquoted keys