# Serialized Variables

In order to parse REST API JSONs, you will need to use Serialized Variables. \
There are six types and each have their own components:

* Serialized String
* Serialized Int
* Serialized Bool
* Serialized Float
* Serialized Array
* Serialized Object

The basic, generic types have a value field and an event that is invoked when the values is updated (via Request Handlers).

<figure><img src="/files/vlr4Eay7w3jtMlTEA56n" alt=""><figcaption><p>Serialized String</p></figcaption></figure>

For each variable you'll need to create an empty game object and name it accordingly. Request Handlers will use their game object name as the variable name when serializing it to JSON.

Objects and arrays deserialize or serialize using mutiple other variables.

<figure><img src="/files/6r308JDJAvrn8FRRx9PS" alt=""><figcaption></figcaption></figure>


---

# 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://docs.holofair.app/development/features/rest-api-integration/serialized-variables.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.
