Using LabVIEW primitive Unflatten From JSON, we need to know the precise structure of the JSON input to access a specific value.
However sometimes we don't have the precise sturcture of the JSON input beforehand, sometimes the structure is heavily nested.
It will be very useful to parse JSON value, nested object or array as string, so that we can observe it or leave further parsing to a latter stage.
e.g. {"a":{"b":[{"c":"c"},{"d":FALSE},{"e":[1,2,3]}]}}
the structrue of value of "a" is a little complicated and I'd like it to be parsed into a string first. It would be very convinient if we can have cascaded parsings as shown below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Available in LabVIEW 2019 and later. Go to the Functions > Programming > String > Flatten/Unflatten String palette and select the item to download and install the JSONtext Toolkit for LabVIEW.