# Working with Data

## Data Objects

In Midio, data objects are used to build any kind of JSON-compatible data structure. You can create them by pressing the space bar and searching for a value type — such as an **object**, **list**, **string**, **number**, or **boolean**.

While editing a value, you can insert a new **object** there, type a single `{`. Type a single `[` to insert a list. Type **control/cmd-enter** to exit the current, **list** or **object**.

A value can be convert to an **input** by hovering it and clicking the **->|** button. That value can then be filled by connecting an arrow to it.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdFpuRAnTVYgmlCXLLou%2Fuploads%2FkuHyMZysdlMHjhaTDhhs%2FClipboard-20250331-175722-735.mp4?alt=media&token=0729d7ea-9c07-44d6-aead-e6422bac37bb>" %}

## Raw Mode

Sometimes you may want to edit your data using plain text. Press the **raw mode (\</>)** button on a data node to open a text editor that shows the data as text. The raw mode editor is JSON-compatible but includes some extra features unique to Midio.

For example, you can have the object take inputs dynamically by entering an identifier (like a variable name) where a value would normally be.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdFpuRAnTVYgmlCXLLou%2Fuploads%2FWNRV6Alrnz2XrMGNyJp0%2FClipboard-20250331-180424-363.mp4?alt=media&token=6a7708ba-ce80-4cc8-b3a1-274f36cb2c96>" %}

## JSON Compatibility

Midio's data notation is a **superset of JSON**. This means any valid JSON is also valid in Midio—but Midio allows for additional syntax that makes working with dynamic data easier. For instance, keys in objects don't need to be quoted if they follow standard identifier rules, and values can be replaced with inputs.

You can paste raw JSON directly into the editor to create data nodes, or switch to raw mode to edit them by hand. Either way, Midio helps you work with structured data in a familiar and flexible way.


---

# 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.midio.com/midio-docs/guides/working-with-data.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.
