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

Was this helpful?

Edit on GitHub
  1. Reference
  2. The Midio Editor

Data

PreviousFunction SignatureNextSettings

Last updated 2 months ago

Was this helpful?

Data objects in Midio are essentially a superset of JSON, meaning they support the following data types:

  • string

  • number

  • boolean

  • null

  • lists

  • objects

The above object can be viewed in text mode by clicking the </> button in the top right corner:

Data inputs

Data objects can also accept inputs, by specifying an identifier where the data object normally expects a value. You can also convert a value to an input by clicking the ->| icon that appears when hovering a value in the object editor.

The input that then appears on the left hand side of the data object can then be connected to any other value, either from a function or another data object.

In the text editor the above object looks like this:

As you can see in the above object text view, it is not quite JSON. The object fields (value1, value2, value3, list1 and object1), are identifiers, and not string literals, as JSON would expect. Since the Midio object notation is a JSON superset, it is perfectly ok to change these to string literals, if you want. To the midio runtime, it makes no difference, and when converting to a JSON string using , any identifier will be converted to a string literal anyway.

Json Parse
Notice that inputis an identifier, and not a string literal any more.