# JSON GET

## JSON GET

### Try Get Bool Field

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2F2fDMj9o0mmQhMw3xM5jZ%2FTryGetBool.png?alt=media&#x26;token=1637757c-47b5-4a59-be41-2adf1ae993c2" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get Bool Field

## Overview

JSON functionality used to safely retrieve a Boolean value from a JSON object. This node attempts to extract the value of a specified field and interpret it as a Boolean. If the field is found and its value is a valid Boolean, the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve the Boolean value.
* **Field Name** – The name of the field (**as string**) to search for within the JSON object.

## Outputs

* **Success** – Returns true if the field exists and its value was successfully parsed as a Boolean. Otherwise, returns false.
* **Bool Data** – The Boolean value retrieved from the specified field.
  {% endhint %}

***

### Try Get Byte Field

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2Fk7AXYoFrcNEhbJUchX9P%2FTryGetByte.png?alt=media&#x26;token=7b074ce4-1c3d-422a-a84b-25b326a3a957" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get Byte Field

## Overview

JSON functionality used to safely retrieve a byte value from a JSON object. This node attempts to extract the value of a specified field and interpret it as a byte. If the field is found and its value is a valid number within the acceptable range, the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve the byte field.
* **Field Name** – The name of the field (**as string**) to search for within the JSON object.

## Outputs

* **Success** – Returns true if the field exists and its value was successfully parsed as a byte. Otherwise, returns false.
* **Number Data** – The numeric value retrieved from the specified field, interpreted as a byte.
  {% endhint %}

***

### Try Get Number Field

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2FL6NWp1Ng1YgTfFMNy1i9%2FTryGetNumber.png?alt=media&#x26;token=52e1133c-1be8-4dbc-a13c-a65802061cec" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get Number Field

## Overview

JSON functionality used to safely retrieve a numeric value from a JSON object. This node attempts to extract the value of a specified field and interpret it as a number (**Float**). If the field is found and its value is a valid number, the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve the number field.
* **Field Name** – The name of the field (**as string**) to search for within the JSON object.

## Outputs

* **Success** – Returns true if the field exists and its value was successfully parsed as a number. Otherwise, returns false.
* **Number Data** - The numeric value retrieved from the specified field, interpreted as a float.
  {% endhint %}

***

### Try Get String Field

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2FcmUyhE5t3JhTYlykS2Cl%2FTryGetString.png?alt=media&#x26;token=fca39be2-e28d-404e-935a-aee9ead2745d" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get String Field

## Overview

JSON functionality used to safely retrieve a string value from a JSON object. This node attempts to extract the value of a specified field and interpret it as a string. If the field is found and its value is a valid string, the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve the string field.
* **Field Name** – The name of the field (**as string**) to search for within the JSON object.

## Outputs

* **Success** – Returns true if the field exists and its value was successfully parsed as a string. Otherwise, returns false.
* **String Data** - The string value retrieved from the specified field.
  {% endhint %}

***

### Try Get Object Field

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2F2qa4UTCKKdEVp3YDkqQb%2FTryGetObject.png?alt=media&#x26;token=5ca22103-8426-4c54-a0e5-817aaee787d4" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get Object Field

## Overview

JSON functionality used to safely retrieve a nested JSON object from within a parent JSON structure. This node attempts to extract the value of a specified field and interpret it as a valid JSON object. If the field is found the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve a nested object field.
* **Field Name** – The name of the field (**as string**) to search for within the JSON object.

## Outputs

* **Success** – Returns true if the field exists and its value was successfully parsed as a JSON object. Otherwise, returns false.
* **JSON Object Field** – The nested JSON object retrieved from the specified field.
  {% endhint %}

***

### Try Get Array Field

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2FhhTK6zvrgsxj3kXOSTs7%2FTryGetArray.png?alt=media&#x26;token=c4e28971-7fe5-42bc-8e42-8cfdab0a892b" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get Array Field

## Overview

JSON functionality used to safely retrieve an array from a JSON object. This node attempts to extract the value of a specified field and interpret it as a JSON array. If the field is found and its value is a valid array structure, the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve the array field.
* **Field Name** – The name of the field (**as string**) to search for within the JSON object.

## Outputs

* **Success** – Returns true if the field exists and its value was successfully parsed as a JSON array. Otherwise, returns false.
* **Out JSON Array** – The JSON array retrieved from the specified field.
  {% endhint %}

***

### Try Get All Object Field Names

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2FMSzkgqFAmDUMvglbtU9y%2FTryGetAllObjectNames.png?alt=media&#x26;token=0339f512-b716-487b-b27d-9c2826601084" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get All Object Field Names

## Overview

JSON functionality used to retrieve all the field (**key**) names from a JSON object. This node extracts a list of all keys within the given object, If the input is a valid JSON object, the operation succeeds.

## Inputs

* **JSON Object** – The input JSON object from which you want to extract all field names.

## Outputs

* **Success** – Returns true if the input was a valid JSON object and field names were successfully retrieved. Otherwise, returns false.
* **Field Names** – An array of strings containing all field names (**keys**) present inside the provided JSON object.
  {% endhint %}

***

### Try Get All Object Field Values

<div data-full-width="false"><figure><img src="https://3435697989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY0AaujVx04fAwfuhX6eu%2Fuploads%2FA1DjZv2Xq9pqxmynFkYW%2FTryGetAllObjectFieldValues.png?alt=media&#x26;token=4428014c-a058-49ab-8688-fdaa429d8fb0" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}

### Try Get All Object Field Values

## Overview

JSON functionality used to retrieve all field values from a JSON object and output them as an array. This node collects the values (**ignoring the keys**) in the provided JSON object. If the object is valid, it will return a JSON array containing each value as a JSON array.

**Note:** The Array Name input allows you to label or reference the returned array when accessing the values later. You can use the [**Try Get Array Field**](#try-get-array-field) node to access this data using the "**Array Name"**. Returns an empty array if the object is invalid or empty.

## Inputs

* **JSON Object** – The input JSON object from which you want to retrieve all field values.
* **Array Name** – The name under which the resulting value array will be stored or accessed. Useful for referencing in further operations.

## Outputs

* **Success** – Returns true if the input is a valid JSON object and the values were successfully collected into an array. Otherwise, returns false.
* **JSON Value** – A JSON object that contains a JSON array that holds all the found values from the provided "**Json object**".
  {% endhint %}
