Working with Data
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
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.