07-22-2014 01:31 PM
Hi,
This may sound like a stupid question, but I'll ask it nonetheless:
How do you actually open and read a .json file into Labview? I have the i3 JSON toolkit but all the examples I've seen that use this generate their own data in Labview, not read it in from an existing file. I need to read in the data from a already existing .json file and am getting weird behavior when I try to use the labview file i/o functions. Can you give an example of the sequence of steps to get data from the .json into labview?
Thanks so much,
Fred
07-22-2014 02:17 PM
Hi Fred,
As you have seen the JSON VIs in the i3 JSON Toolkit are only able to parse strings. This means that loading a json string from a file will require two steps:
One thing to keep in mind when parsing JSON text in LabVIEW 2013 is that now LabVIEW includes native JSON parsing functions which handle many cases. See the following post for some of the JSON parsing options available in LabVIEW: https://decibel.ni.com/content/message/76055#76055
Best,
Milan