parseJSON
To convert a JSON string to a JSON object
This function converts a string to a JSON object.
The string needs to be written as a valid JSON object. Otherwise, the function will return unuseful stuff. Not good.
🐸
This can be quite handy if you need to modify a JSON object and pass it on in the
http()
function. parseJSON(string)
JSON
parseJSON(jsonString)
To convert a JSON string to a JSON object.Use double quotes ("") for quotes within a string.
1
parseJSON("{
2
""test"": 123
3
}")
Result: {"test":123}
Last modified 11mo ago