image.png

Category: Objects Kind: Operation Description: Parse a string into an object

Inputs

Name Abbreviation Type Access Description
String S String Item The string to parse

Outputs

Name Abbreviation Type Access Description
Object O Any Item The parsed object

About

In JSON (JavaScript Object Notation), an object is a collection of key-value pairs.

It’s wrapped in curly braces { }, and each key-value pair inside it follows this format:

json
CopyEdit
"key": value

Example:

Here’s a JSON object representing a property listing:

json
CopyEdit
{
  "address": "123 Maple Street",
  "price": 450000,
  "bedrooms": 3,
  "bathrooms": 2,
  "square_feet": 1800,
  "status": "For Sale"
}

Explanation:

Quick Facts About JSON Objects:

JSON Object vs JSON Array:

Example with Both:

json
CopyEdit
{
  "listings": [
    {
      "address": "123 Maple Street",
      "price": 450000
    },
    {
      "address": "456 Oak Avenue",
      "price": 525000
    }
  ]
}

How-To

  1. Pass in a string

    This could be from a string, panel or any node that results in a string

  2. The result is the string wrapped into an Object.