There is a newer version of this op!
This version will not receive any updates. It is recommended to use a newer version.
Current version: Ops.Json.ParseObject_v2
Parses a string to a JSON object
summary (oneliner)
Basically JSON.parse()
, parses a string to an object. Valid objects are enclosed by {}
and use double quotation marks for the keys, e.g.:
{ "foo": "bar", "baz": 123 }
doc
issues
youtube id
caniuse query
collections
Inputs
JSON String (string /Number)
The string to parse
Outputs
Result (Object)
The parses object
Valid (Number)
true
if the string could be successfully parsed, false
if it is not a valid object
ParseObject Example
Parses a string {"foo": "bar"}
as an object and uses Ops.Json.ObjectGetValue to extract the key foo
(which is "bar"
)