Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 988 Bytes

static-array.md

File metadata and controls

44 lines (34 loc) · 988 Bytes

Static Array

Store static data to populate an Array with items.

INPUTS

Type
Choose what format the data will be in.

  • CSV - Comma-separated values
  • JSON - Javascript Object Notation

CSV
The first row defines the name of all properties. Subsequent rows defines the data values. Example:

lamp,topic
Kitchen Lamp,/lamps/1
Office Lamp,/lamps/2
Office Lamp 2,/lamps/4

JSON
Define the name of the properties, and the data, using a JSON array. Example:

[
    {
        "lamp": "Kitchen Lamp",
        "topic": "/lamps/1"
    },
    {
        "lamp": "Office Lamp",
        "topic": "/lamps/2"
    },
    {
        "lamp": "Office Lamp 2",
        "topic": "/lamps/4"
    }
]

OUTPUTS

Items
A Noodl.Array object that can be connected to e.g. an Array, Javascript or For Each.