mccoleman
2 years agoNew Contributor
JSON output nested in array
Good evening,
I have an array of elements that I'd like to output as JSON:
[{...},{...},{...}]
In order to nest this array under a JSON property, I utilize the "Group by N" snap, which results in my data looking like this:
{
"randomKey": [{...},{...},{...}]
}
This is passed into a JSON formatter. Upon looking at the output JSON however, it appears that what I'm actually getting is this:
[{
"randomKey": [{...},{...},{...}]
}]
How can I configure the JSON formatter to not nest my response in an array? Why is it happening?