Flatten / un-flatten nested JSON objects

287 Views Asked by At

I am using this online fattening script - https://jsfiddle.net/S2hsS . I am using. It is flatting plain array also. ie, I have an array in my json [43322, 454353, 56546] It converting

    "events.events[0]._source.Ids[0]": 43322,
    "events.events[0]._source.Ids[1]": 454353,
    "events.events[0]._source.Ids[2]": 56546,

But I need like this:

    "events.events[0]._source.Ids"=[43322, 454353, 56546]`

Problem, Actually, Id's count is around 20 to 2000+. We getting very very big fatterned file and it not needed also. so.

0

There are 0 best solutions below