What would be the best way to parse the "result" of a JSON string in q and build a table out of its structure?
for example, if returned a json order book:
{
"success":true,
"message":"",
"result":{
"buy":[
{"Quantity":19999,"Rate":0.73},
{"Quantity":138877,"Rate":0.72}
],
"sell":[
{"Quantity":1999,"Rate":0.74},
{"Quantity":7756,"Rate":0.75}
]
}
}
what is a function that would convert this to:
x Quantity Rate
"buy" 19999 0.73
"buy" 138877 0.72
"sell" 1999 0.74
"sell" 7756 0.75
and work on arbitrary levels of nesting in the JSON?