I have JSON data that looks like this. I pulled it from the Darwinex API. I was hoping to have a blog entry, where I demonstrate Zorro's ability to download and parse JSON data with nothing more than a Zorro script, but maybe I will need to make and load a DLL too.
It also does not help that it starts with an eccentric element at the beginning of the array.
int h = 1;
const char* format = "candles,timestamp,%t,max,min,open,close";
int numparsed = dataParseJSON(h,format,filename);
printf("\nnumparsed = %d",numparsed);
As far as I see the data is only mildly eccentric. Candle and timestamp are stored in 2 objects, so Zorro would parse any candle twice. Remove the two extra brackets with a search-replace operation, then you can parse it. Or parse it unchanged and then remove the redundant lines with dataCompress.