Docly Developers
Function Updated 17 Oct 2026

JSON.parse(json)

Parses a JSON string into an object.

See also JSON.stringify

Parameters

jsonstringrequired

JSON string to parse into object.

Returns

The parsed value. null for an empty or whitespace-only string.

Dates in the JSON stay strings — they are not turned into Date objects. Only one argument is supported: passing a second argument (a reviver function) makes the call return null.

Example

Mixed HTML (or any text file) with inline JavaScript between hash signs.
#{
    var obj = JSON.parse("{ \"Name\" : \"Here is the value of the property 'Name' \"}");
    write(obj.Name);
}#