beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ParseObject Op

Ops.Json.ParseObject


ParseObject
Collections:converter  
Namespace: Ops.Json

Op author: pandur

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

related ops

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


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

ParseObject Example

Parses a string {"foo": "bar"} as an object and uses Ops.Json.ObjectGetValue to extract the key foo (which is "bar")

Open Example In Editor


Examples using ParseObject ()

Public Patches using ParseObject ()