LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

JSON unflattening

Solved!
Go to solution

Hi guys, 

 

I'm having such a hard time with this little task, decoding a JSON string. I have a data mismatch. Can someone please have a look and give some advise? VI is attached. 

 

Thanks. JSON.JPG

0 Kudos
Message 1 of 15
(9,061 Views)
Solution
Accepted by topic author id911

Here

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 15
(9,028 Views)

You can use this to create a control from a JSON string.

"If you weren't supposed to push it, it wouldn't be a button."
Message 3 of 15
(8,978 Views)

Wow, that's very useful! Thanks alot.

0 Kudos
Message 4 of 15
(8,962 Views)

Hi Paul, did you test the llb with LV 2017?

0 Kudos
Message 5 of 15
(8,859 Views)

I am also using json file to Deploy a classification model, earlier i trained a SVM classifier with csv file data set by which i get trained model file in JSON  format. now  when i give this json file as input to the classification Deployment, I always show the data mismatch between json & labview(Error Code - 370004, 370005). All the details & data are also attached.370004..png370004.,,,.png

Download All
0 Kudos
Message 6 of 15
(8,723 Views)

Aman_Dhull,

I'd recommend starting a new thread for this question, as a new post is more likely to get traffic than this post from April.

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 7 of 15
(8,707 Views)

Hey Aman and everyone else interested in Aman's question,

 

I found this is a double posting, therefore have a look at Re: Crash: access violation json as in that thread there are already some follow-ups to Aman's posting.


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
Message 8 of 15
(8,678 Views)

Hi id911,

I'm having the same problems with unflattening proccess.

When I flatten a JSon text with a similar structure, the unflattening proccess send me an error.

 

Can you help me?

0 Kudos
Message 9 of 15
(8,498 Views)

Hey Dirizabal,

I recommend starting a new thread for your question, as a new post is more likely to be seen that a post hidden at the end of a marked-as-solved thread.

 

Regarding your failing un-flattening: You have two mismatched types:

2018-12-10_14-42-58.png


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
Message 10 of 15
(8,345 Views)