Deserializejson()
Decodes the given JSON string into a CFML object
Usage
OBJECT = Deserializejson(
jsonstring,
strictmapping,
file
)
Argument | Summary |
---|---|
jsonstring | JSON string. Cannot be used at the same time as file |
strictmapping | Flag to determine if CFML Query objects should be recognized and converted to a Query object; defaults to true [optional] |
file | path to the file to read instead of using the parameter 'jsonstring'; can be any handle to a virtual file system [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
Deserializejson( jsonstring=?, strictmapping=?, file=? );
Supports passing parameters as a structure using ArgumentCollection:
Deserializejson( ArgumentCollection={ jsonstring : ?, strictmapping : ?, file : ? } );