1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/nodes/examples/parser/csv/01 - Parse CSV with default column name as message sequence.json
2020-11-03 14:34:34 +09:00

99 lines
2.3 KiB
JSON

[
{
"id": "330f4888.cccb28",
"type": "inject",
"z": "4b63452d.672afc",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 260,
"y": 180,
"wires": [
[
"ed11f8d6.5e3c88"
]
]
},
{
"id": "a0288b44.71d488",
"type": "csv",
"z": "4b63452d.672afc",
"name": "",
"sep": ",",
"hdrin": "",
"hdrout": "none",
"multi": "one",
"ret": "\\n",
"temp": "",
"skip": "0",
"strings": true,
"include_empty_strings": "",
"include_null_values": "",
"x": 600,
"y": 180,
"wires": [
[
"369cbe42.4af9f2"
]
]
},
{
"id": "ed11f8d6.5e3c88",
"type": "template",
"z": "4b63452d.672afc",
"name": "CSV data",
"field": "payload",
"fieldType": "msg",
"format": "text",
"syntax": "mustache",
"template": "Apple,100,Canada\nOrange,120,USA\nBanana,80,Philippines",
"output": "str",
"x": 430,
"y": 180,
"wires": [
[
"a0288b44.71d488"
]
]
},
{
"id": "369cbe42.4af9f2",
"type": "debug",
"z": "4b63452d.672afc",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 780,
"y": 180,
"wires": []
},
{
"id": "783cfaa6.52fbe4",
"type": "comment",
"z": "4b63452d.672afc",
"name": "Partse CSV with default column name as messages",
"info": "CSV node can parse input CSV data.\nParsed CSV record can be send as a message sequence.\nEach message payload point to an object with `col`*N* as a key and CSV value as a value.\n",
"x": 330,
"y": 120,
"wires": []
}
]