09-08-2019 11:16 AM
Hello all I Have coplicaded Json i woudl like to get vaues from but i am geting error - 375005
I have checked if JSON is vailid by https://jsonformatter.curiousconcept.com/.
Please Have look
Solved! Go to Solution.
09-08-2019 03:57 PM
Hi plpablo,
The issue is that the JSON type has to match to a compatible LabVIEW type.
In the example provided the id portion looks like the following:
{"id":1, ...
In that JSON representation the JSON Object contains a field named id with a JSON Number value.
In the example, the cluster passed to Unflatten from JSON represented id as a string:
If you change the id field of the cluster to a number it parses as expected:
09-09-2019 03:15 AM
HI Milan,
Thank You for anwser. Unfortunately i am still getting -375003 Error.
09-09-2019 06:59 AM
When I run the VI you just attached, I don't get any error. Just a value of 1 for ID in that cluster.
09-09-2019 07:13 AM
How is possibe?
09-09-2019 07:37 AM - edited 09-09-2019 07:38 AM
Good question.
09-09-2019 07:42 AM
This is My first expirience witch Json so i Have no idea What can be wrong.
My LabView version is is 2017
Should I install any additional packages ?
09-09-2019 07:52 AM
I would suggest cutting down the JSON string to only the 2 first elements for now.
/Y
09-09-2019 08:09 AM - edited 09-09-2019 08:32 AM
For two first rows works perfect i will add more and will se when in stop working.
Ok it stopped working after I add Devices section(table). But Why? What Schuld I do?
09-09-2019 09:14 AM - edited 09-09-2019 09:14 AM
Your error message says that JSON must be UTF8, but you are using UTF8-to-text to deliberately convert it to a non-UTF8 encoding. I suspect you might be using a different LabVIEW version that is more strict about this than the version used by the other people on this thread.