4 ms·
I tried converting this: [ { "name": "Avocado Dip", "carb": 2, "cholesterol": 5, "fiber": 0, "minerals": { "ca": 0, "
by hermitcrab 11mo ago
I tried converting this:
[
{
"name": "Avocado Dip",
"carb": 2,
"cholesterol": 5,
"fiber": 0,
"minerals": {
"ca": 0,
"fe": 0
},
"protein": 1,
"sodium": 210,
"vitamins": {
"a": 0,
"c": 0
}
}
]
And I got:
name,carb,cholesterol,fiber,minerals,protein,sodium,vitamins
Avocado Dip,2,5,0,"{""ca"":0,""fe"":0}",1,210,"{""a"":0,""c"":0}"
Which is not what I would expect.
- sumit_entr42 11mo agoSorry for the inconvenience. The problem was that my logic was working for few working types and sets of json. So, it wasn't able to recognize your need. So now I have made the logic more robust, so it can handle wide range of json types. Thanks for feedback. Have a Good Day!!