I'm getting a response from an api, but this response could be any type of json. I need to take the data and print it on a csv, is there anyway to convert that json to a dynamic object and iterate it or is there any other way to do it?.
My json response is:
{
"A":{
"B":[
{
"C":"data"
"E":"data"
"G":{
"H":[
{"I":"data"},
{...},
{...}
]
}
},
{...},
{...},
{...}
]
}
}
and latter it could be
{
"A":{
"B":[
{
"C":"data"
"E":"data"
"G":{
"H":[
{"I":"data"},
{...},
{...},
{"K":[
{"w":"data"},
{...},
{...},
{"d":[
{"d":"data"},
{...},
{"d":[
{"h","data"},
{...},
{...}
]}
]}
]}
]
}
},
{...},
{...},
{...}
]
}
}