Yes, that is possible. You’ll need a minimum of three modules:
View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 14,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "[\n {\n \"0\": \"4803461122\",\n \"1\": \"xxxxx\",\n \"2\": \"xxxxx\",\n \"3\": \"xxxxx\",\n \"4\": \"02/28/2024\",\n \"5\": \"04/11/2024\",\n \"6\": \"05/09/2024\",\n \"7\": \"andlt; select andgt;\",\n \"8\": \"\",\n \"9\": \"\",\n \"10\": \"251\",\n \"11\": \"$1,125.00\",\n \"12\": \"xxxxx\",\n \"__IMTINDEX__\": 1,\n \"__IMTLENGTH__\": 2\n },\n {\n \"0\": \"4034199563\",\n \"1\": \"xxxxx\",\n \"2\": \"xxxxx\",\n \"3\": \"xxxxx\",\n \"4\": \"\",\n \"5\": \"\",\n \"6\": \"02/19/2024\",\n \"7\": \"xxxxx\",\n \"8\": \"04/19/2024\",\n \"9\": \"09/30/2023\",\n \"10\": \"647\",\n \"11\": \"$300.00\",\n \"12\": \"xxxxx\",\n \"__IMTINDEX__\": 2,\n \"__IMTLENGTH__\": 2\n }\n]"
},
"metadata": {
"designer": {
"x": 12,
"y": -378
},
"restore": {
"parameters": {
"type": {
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 15,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "range",
"scope": "roundtrip",
"value": "{{if(parseNumber(substring(14.`11`; 1); \".\") >= 1750; \"1750-1999\"; if(parseNumber(substring(14.`11`; 1); \".\") >= 1500; \"1500-1749\"; if(parseNumber(substring(14.`11`; 1); \".\") >= 1250; \"1250-1499\"; if(parseNumber(substring(14.`11`; 1); \".\") >= 1000; \"1000-1249\"; if(parseNumber(substring(14.`11`; 1); \".\") >= 750; \"750-999\"; \"0-749\")))))}}"
},
"metadata": {
"designer": {
"x": 253,
"y": -376
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"interface": [
{
"name": "range",
"label": "range",
"type": "any"
}
]
}
},
{
"id": 17,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 14
},
"mapper": {
"range": "{{15.range}}"
},
"metadata": {
"designer": {
"x": 496,
"y": -378
},
"restore": {
"extra": {
"feeder": {
"label": "JSON - Parse JSON [14]"
},
"target": {
"label": "Custom"
}
}
},
"advanced": true
},
"flags": {
"groupBy": "{{15.range}}"
}
},
{
"id": 20,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "count",
"scope": "roundtrip",
"value": "Range: {{17.`__IMTKEY__`}}; Count: {{length(17.array)}}"
},
"metadata": {
"designer": {
"x": 738,
"y": -376
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"interface": [
{
"name": "count",
"label": "count",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}