Skip to main content
Version: v6.5.0

JSON-String-to-Object

Command Description​

Convert a JSON string to an object

Command Prototype​

objJSON = JSON.Parse(strJSON)

Parameter Description​

ParameterRequiredTypeDefaultDescription
strJSONTruestring""The string to convert to JSON

return​

objJSON,The variable used to save the output of the command.

Demo​

objJSON = JSON.Parse("{\"test\" : 123 }") 
TracePrint(objJSON)
/*
{
"test" : 123
}
*/