example input data format json
data: {
div1: {
name: "some name",
age: number,
address_1: "some address",
items: {
item_x1: "some data",
..
..
}
}
..
..
}
expected result should be formatted flatten json
{ "data.div1.name":"some name",..., "data.div1.items.item_x1":"some data",...},
..
..
{ "data.divN.name":"some name",... }
fields can be unknown! so there is not necessary to activate any filtration command!
any ideas for unix based command ?
Best Answer
Have a look at gron. From the linked page: