# JSON GET

## JSON GET

### Try Get Bool Field

<div data-full-width="false"><figure><img src="/files/jdkxMMmBmeUD2EyU1Uu2" 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="/files/NRXPd99i1xFMXoHfwNxc" 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="/files/RpICnRCBM3JLnXs2rMM7" 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="/files/Wpd7eV4fXsq72HVVDDfD" 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="/files/NI6P5wRXWQAwTYF9il6T" 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="/files/RyOd0gBpldiIuLalbLvF" 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="/files/q7bGcEcDFnD1X9OeGrkH" 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="/files/RF22RYqalbB3FMiULhcN" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.uforge.co.uk/http-pro/httppro-doc/json-get.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
