Module Export
You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block

-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.
-
Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.
View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 54,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "{\"cars_array\": [\n {\n \"pattern\": \"2024-07-13\",\n \"output\": \"Mercedes\"\n },\n {\n \"pattern\": \"2024-07-13\",\n \"output\": \"Ford Credit 1234\"\n },\n {\n \"pattern\": \"2024-07-14\",\n \"output\": \"Ford Credit 5678\"\n },\n {\n \"pattern\": \"2024-07-14\",\n \"output\": \"Mercedes Sprinter\"\n }\n]}"
},
"metadata": {
"designer": {
"x": 10,
"y": -1094
},
"restore": {
"parameters": {
"type": {
"collapsed": true,
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 55,
"module": "builtin:BasicFeeder",
"version": 1,
"parameters": {},
"mapper": {
"array": "{{54.cars_array}}"
},
"metadata": {
"designer": {
"x": 257,
"y": -1088
},
"restore": {
"expect": {
"array": {
"mode": "edit"
}
}
},
"expect": [
{
"name": "array",
"type": "array",
"label": "Array",
"mode": "edit",
"spec": []
}
]
}
},
{
"id": 56,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 55
},
"filter": {
"name": "match?",
"conditions": [
[
{
"a": "{{55.pattern}}",
"o": "text:equal",
"b": "2024-07-14"
}
]
]
},
"mapper": {
"output": "{{55.output}}"
},
"metadata": {
"designer": {
"x": 553,
"y": -1088,
"messages": [
{
"category": "last",
"severity": "warning",
"message": "A transformer should not be the last module in the route."
}
]
},
"restore": {
"extra": {
"feeder": {
"label": "Iterator"
},
"target": {
"label": "Custom"
}
}
}
}
}
]
}
],
"metadata": {
"version": 1
}
}
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!