▤Free
Group JSON records
Group records by a selected property without losing rows.
Group records by a selected property without losing rows. Collect records with the same serialized property value into groups containing a key and items. Group order follows the first appearance of each value in the input array.
How to use
- Enter your text, values, or image.
- Adjust the options and run the tool.
- Copy or download your result.
Worked example
Example input
Input: [{"k":"A","n":1},{"k":"A","n":2}]
Group property: kExample result
[
{
"key": "A",
"items": [
{
"k": "A",
"n": 1
},
{
"k": "A",
"n": 2
}
]
}
]Limitations and details
Every item must be an object containing the chosen direct property; nested object key order can affect grouping.
Inputs and options
- Input
- Text
- Group property
- Text
Frequently asked questions
Is this tool free and private?
Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.