JSON-String-to-Object
Command Description
Convert a JSON string to an object
Command Prototype
objJSON = JSON.Parse(strJSON)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
strJSON | True | string | "" | 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
}
*/