The JSON_decode() function converts a JSON-formatted string to an object and returns the object.
JSON_decode(str)
| Argument | Type | Description |
|---|---|---|
str | String | The JSON-formatted string |
Return type: Object
UQLreturn JSON_decode('{"name":"Lisa","age":23}')
Result: {"name":"Lisa","age":23}
Parse JSON-formatted data into usable object format, and dynamically update nodes based on the keys of the parsed object.
UQLUNCOLLECT ['{"name":"Lisa","age":23}', '{"name":"Paul","age":35}'] as strings with JSON_decode(strings) as object update().nodes({name == object.name}).set({age: object.age})