I have a large file following this format. Originally I tried parsing this in javascript with JSONStream and ran into some issues. I've been trying to figure out a way to change the duplicate keys so that I can parse this more easily. For example: Instead of content
each would have a counter appended - content-1
, content-2
. This is a very large file so I cannot do it manually, any suggestions on how I can do this or restructure with js would be greatly appreciated!
{
"Test": {
"id": 3454534344334554345434,
"details": {
"text": "78679786787"
},
"content": {
"text": 567566767656776
},
"content": {
"text": 567566767656776
},
"content": {
"text": 567566767656776
}
}
}