03-07-2019 05:34 AM
{"channel":{"id":720151,"name":"Power Monitoring System","latitude":"0.0","longitude":"0.0","field1":"Voltage","created_at":"2019-03-05T10:24:13Z","updated_at":"2019-03-05T10:24:13Z","last_entry_id":523},"feeds":[{"created_at":"2019-03-07T11:16:17Z","entry_id":523,"field1":"056"}]}
Hello friends,
I'm trying Unflattering from JSON , i dont know how to get the data from it, i need the value of "field1" please kindly suggest a method or send me the VI.
Thanks,
Solved! Go to Solution.
03-07-2019 06:03 AM - edited 03-07-2019 06:03 AM
03-07-2019 06:08 AM
Hi,
what about 'unflatten from JSON' in the String Function Palette??
Function>Programming>String>Flatten/Unflatten String>...
Regards
Kay
03-07-2019 06:35 AM
value of field1 is 56
so i need to extract the value of field1 from JSON file
03-07-2019 07:39 AM
Try using JSONtext.
03-07-2019 08:05 AM - edited 03-07-2019 08:12 AM
it worked ,
Thank You for suggesting the addon , its simple to build..
03-08-2019 12:45 AM
What's wrong with the inbuilt LabVIEW JSON parser? Do you really need a plugin for such a simple operation?
03-09-2019 02:52 AM
@TroyK wrote:
What's wrong with the inbuilt LabVIEW JSON parser? Do you really need a plugin for such a simple operation
For the very simplest example, no, but the complexity of using the inbuilt parser grows rapidly with only slightly less simple real world problems.