LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WebVI JSON Array Issue

Solved!
Go to solution

Having another Simple JSON issue:

Receiving 

DeOdderKeith_0-1605286581258.png

but apparently, there is an issue with my decoding 

 

DeOdderKeith_1-1605286656692.png

I get an Error -375006

 

I've also tried connecting a String Array directly into the input to the Unflatten JSON and wiring directly to an Array indicator, but I get the same result.

 

Please help

 

KM

0 Kudos
Message 1 of 3
(1,114 Views)
Solution
Accepted by topic author DeOdderKeith

Hi KM,

 

The structure of the LabVIEW type should match the JSON value. In this case the JSON Object has a field named "subarray" that is an array of strings. The LabVIEW type is a cluster with a field named "String Constant" with a scalar string value.

 

In order to match the JSON Value the LabVIEW type should be a cluster with a field named subarray that is a 1d string array.

 

Milan

 

jsonparse.png


Milan
0 Kudos
Message 2 of 3
(1,090 Views)

I was missing the name. In this case, "subarray"

Thanks

 

KM

0 Kudos
Message 3 of 3
(1,084 Views)