How to write dataParseJSON format correctly ?

Posted By: Chuate

How to write dataParseJSON format correctly ? - 01/15/19 01:13

Hello,

I want to convert json to t6 by using dataParseJSON.

+%t,f3,f1,f2,f4,f6 works for csv but with json I don't know how to write correctly. Anyone here can help me ?

This is api json I want to get


This is json format in manual page:
Quote:
"Start,Time,Timeformat,High,Low,Open,Close,AdjClose,Volume"
Posted By: Chuate

Re: How to write dataParseJSON format correctly ? - 01/16/19 01:48

I changed to "+%t,open,high,low,close" but it still show error.
Posted By: kvm

Re: How to write dataParseJSON format correctly ? - 01/16/19 07:29

No, it's not possible! As you can see, the json you receive contains unnamed fields, so you can't reference them by name in your format string.
© 2024 lite-C Forums