Data
Last updated
Was this helpful?
Last updated
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 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.
input
is an identifier,
and not a string literal any more.