ParseObject_v2 Op

ParseObject

Parses a string to a JSON object


<p>Basically <code>JSON.parse()</code>, parses a string to an object. Valid objects are enclosed by <code>{}</code> and use double quotation marks for the keys, e.g.: </p> <pre><code>{ &quot;foo&quot;: &quot;bar&quot;, &quot;baz&quot;: 123 } </code></pre>


Full Name
  • Ops.Json.ParseObject_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch ParseObject Example

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

Open In Editor

INPUT PORTS


JSON String (String)

<p>Json string in</p>

OUTPUT PORTS


Result (Object)

<p>Object out</p>

Valid (

<i>boolean</i>

Number)

<p>Is true if the key is found</p>


Patches using ParseObject_v2

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2019-09-06 11:07