Hello team,
I am using below liquid code to generate JOSN file, but not getting expected output.
I am using Azure Integration account Maps to hold liquid file and do the liquid transformation using logic apps, however unable to proceed with my work due to invalid response from Liquid Range functionality.
Code used:
{
{%- for i in (1..5) -%}
{%- if forloop.Last == true -%}
"test":{{ i }}
{%- else -%}
"test":{{ i }},
{%- endif -%}
{%- endfor -%}
}
Expected JSON:
{
"test": 1,
"test": 2,
"test": 3,
"test": 4,
"test": 5
}
Output Comes:
{
"test": 5
}
Kindly help me with this.
Thanks in advance