JSON.parse(json) Last updated: 19. Dec 2022

Parses a JSON string into an object.

Parameters

Name Type Description
json string JSON string to parse into object.

Returns

Returns an object from the specified JSON string.

Example

Code example (#JS)

#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.
#{
    var obj = JSON.parse("{ \"Name\" : \"Here is the value of the property 'Name' \"}");
    write(obj.Name);
}#

Output

The #JS code above produces the output shown below:
Here is the value of the property 'Name'