Get node value action in JSON

You can retrieve the node value in JSON.

Settings

Retrieves the value of a node.

  • Enter the key or node path to retrieve multiple nodes or select an existing variable.
    Note: Enter $ in the JSON node key or path field if you want to retrieve the value of a key from the root level of JSON.
    You can select a single record from an array of records and pass an index number to select the specific record from an array. For example,
    {
    "CompanyName": "XYZ Inc.",
    "CompanyAddress": "NY, USA",
    "CompanyPhone": "9876543210",
    "CompanyEmployees": [
    {
    "id": 1,
    "first_name": "Hilly",
    "last_name": "Triplet",
    "email": "htriplet0@earthlink.net",
    "gender": "Male",
    "ip_address": "152.189.110.100"
    },
    {
    "id": 2,
    "first_name": "Nathaniel",
    "last_name": "Pagitt",
    "email": "npagitt1@google.de",
    "gender": "Male",
    "ip_address": "54.93.141.163"
    },
    {
    "id": 3,
    "first_name": "Lauree",
    "last_name": "Gendrich",
    "email": "lgendrich2@nba.com",
    "gender": "Female",
    "ip_address": "117.24.49.36"
    },
    {
    "id": 4,
    "first_name": "Ike",
    "last_name": "Caines",
    "email": "icaines3@adobe.com",
    "gender": "Male",
    "ip_address": "166.174.181.87"
    }
    ]
    }

    When you enter the node path CompanyEmployees[2].first_name, the output is retrieved as Lauree, and if you enter the node key CompanyAddress, the output is retrieved as NY, USA.

  • Enter the session name or select a variable used in the Start session action.
  • In the Save the outcome to variable field, select a string type variable to hold the output.