Virus scan in progress. Please wait to download attachments.
This tool helps to automate this process, by parsing JSON, and scripting the corresponding LabVIEW cluster.
The Unflatten from JSON primitive introduced with LabVIEW 2013 often requires that JSON of interest be mapped to a LabVIEW cluster datatype, before you can unflatten the data in LabVIEW. This tool helps to automate this process, by parsing JSON, and scripting the corresponding LabVIEW cluster.
LabVIEW 2013 or compatible
Steps to Implement or Execute Code
Download and extract "Parse JSON to Cluster v2 - 2013.zip".
To install as a Quick Drop shortcut, move the folder to (Mac) \Users\<username>\Documents\LabVIEW Data\Quick Drop Plugins\ or (Windows) C:\Users\<username>\Documents\LabVIEW Data\Quick Drop Plugins. You may need to create the "Quick Drop Plugins" folder.
To invoke, either select a string control, indicator or constant, or copy JSON data to your clipboard. Then launch Quick Drop [(Mac) Control-Shift-Space - (Windows) Control-Space] and press Control-J.
Alternatively, open the "JSON to Cluster.vi".
Add whole or part of a custom JSON text to the JSON String control and run the VI.
If the process results in an error, try validating your JSON, and try again.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange. **
Fred Visser -- SystemLink R&D -- National Instruments
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.