LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Broken Wire to "Flatten To JSON"

Sometimes when I wire to "Flatten to JSON" I get a broken wire for no apparent reason.

These 2 clusters were assembled differently, but should be identical.  What's the difference? Why is one broken?

wb.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 3
(781 Views)

I just found it: "

If cluster elements are named, then each name must be unique to that cluster. If you wire an unsupported data type, LabVIEW breaks the VI.
"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 3
(774 Views)

Hi Paul,

 

do you spot the difference now?

JSON needs some label for each item in the data structure…

 

Btw. using the context help to compare the cluster structure (aka datatype) helps for your small cluster as well 😁

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(771 Views)