From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

JSON Toolkit for LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where is "Test JSON Low-Level.vi"?

Solved!
Go to solution

Cloud anyone send me the 'Test JSON Low-Level.vi' or other example vi, I can't find it  in the path after the vipm pakege h has executed setup.

0 Kudos
Message 1 of 5
(5,158 Views)
Solution
Accepted by linna.ma

Hi linna.ma,

 

You can see the Test JSON Low-Level.vi as an example attached to the following post: https://forums.ni.com/t5/JSON-Toolkit-for-LabVIEW/JSON-Toolkit-Support-for-LabVIEW-2010/gpm-p/341358...

 

As recommended in that post, if you are able to use the LabVIEW flatten to JSON and unflatten from JSON primitives available in LabVIEW 2013 and up then you are likely to get much better performance.

 


Milan
0 Kudos
Message 2 of 5
(5,146 Views)

Hi linna.ma and Milan,

 

as I commented in other post (i don’t remember where), it depends that native jain parser are better... for example in my case this is not true (and this is way I use i3 and developed some new vis to perform the libraries).

In my case (I’m italian) I can find italian keyboard on a pc, so the systems has “,” for decimal separator and “.” for 0’s grouping (for example 1.000.000,56. By this way, even if i uncheck the flag in the labview options, the jason native parsing interprets an array [1,3] as a dbl 1.3....

This is an old and well known bug not already fixed (this parsing error is the same in other vis that i do not remember which are)

0 Kudos
Message 3 of 5
(5,136 Views)

Hi Milan,

 Thank you for your link and advise, it works.

0 Kudos
Message 4 of 5
(5,128 Views)

Hi Dariush_Hampai,

 

I am trying to reproduce the behavior you describe in LabVIEW 2018 with the built-in Unflatten from JSON function but I am not seeing the behavior being described:

 

jsonlocalization.PNG

From that screenshot you can see the environment is configured to show numbers with ',' as the decimal separator and it appears that the JSON string "[1,3]" is being correctly turned into an array of length two with values one and three. This is using Windows 10 with LabVIEW 2018 and the following region settings:

region.PNG

 

I also searched internally and found CAR 400245 which describes the behavior you mention in the LabVIEW 2013 Beta but that appears to have been fixed before LabVIEW 2013 released, so I would not expect any release version of LabVIEW to have the described behavior.

 

Do you have a situation where you can reproduce the behavior being described? If you do see the behavior in LabVIEW can you provide more information about the configuration of machine and installed LabVIEW version?


Milan
0 Kudos
Message 5 of 5
(5,111 Views)