Midio docs
  • Getting Started
    • Welcome
    • Quick Start Guide
  • Your First Midio App
  • Guides
    • HTTP
      • Making HTTP Requests
      • Responding to HTTP Requests
      • How to reach your own endpoints
      • CORS
      • Server-Sent Events (SSE)
    • Branching
    • Loops
    • Map, filter, reduce
    • Working with Data
    • Expressions
    • Building Agents
      • Streaming Agent API (experimental)
    • Debugging
    • Secrets and Environment variables
    • Convert JSON to data nodes
    • Writing tests
    • Cleaning up your flows
  • Package Manager
  • Integrating with third party services
  • Troubleshooting
  • Tutorials
    • Connecting LLMs to MCP-servers using the MCP-client package
    • Making Your Own MCP Server in Midio
    • A Fast Path to Functional RAG Agents
    • How to build a streaming agent using Server-Sent Events (SSE)
  • Reference
    • The Midio Editor
      • The Node Editor
      • User Traces
      • Traces (execution)
      • Processes
      • Log
      • Services
      • Problems
      • Function Signature
      • Data
      • Settings
    • The Midio Language
      • Nodes and execution
      • Functions and Events
        • Anonymous functions
      • Modules
      • Contexts
      • Data type
      • Local variables
      • Portals
      • Waypoint node
      • Partial function application
  • The Midio Engine
  • Built in Nodes
    • Core (std)
    • HTTP
    • LLM
Powered by GitBook
On this page
  • Data Objects
  • Raw Mode
  • JSON Compatibility

Was this helpful?

Edit on GitHub
  1. Guides

Working with Data

PreviousMap, filter, reduceNextExpressions

Last updated 1 month ago

Was this helpful?

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.

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.

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.