Group
Group processes objects by grouping arrays into an array of tuples or array of objects.
Interpretation Methods
The processor supports these interpretation methods:
- object
Options
Field | Type | Description | Required |
---|---|---|---|
keys | []string | determines where processed values are set in newly created objects. defaults to an empty array, which creates an array of tuples instead of an array of objects. | No |
Use Cases
Grouping into an Array of Objects
If keys is ["x.y","z"]
then the result is:
{"a":[["b","c"],[1,2]]}
{"a":[{"x":{"y":"b"},"z":1},{"x":{"y":"c"},"z":2}]}
Updated over 1 year ago