LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree viewer read from json

Hi All

 

May I know ? ,  Is there any way to make tree view by read from json file ?

 

Thank you

 

BR

Bee

0 Kudos
Message 1 of 9
(276 Views)

Hell weerapong,

 

there is no built-in function in LabVIEW.

Is the structure of the JSON- String known? Can you convert it to LabVIEW- Types via the LabVIEW-Json-VIs (or JKIs VIs)?

 

 

Greets, Dave
0 Kudos
Message 2 of 9
(250 Views)

Here's a simple routine I made a while ago for viewing JSON file in a LabVIEW tree. Each element's tag is the full path name to the element.

 

tree.png

Message 3 of 9
(226 Views)

@Jacobson wrote:

Here's a simple routine I made a while ago for viewing JSON file in a LabVIEW tree. Each element's tag is the full path name to the element.

 

tree.png


nice!

 

once upon a time, i figured out, that firefox does have a very fine out of the box .json viewer if you open such a file in firefox browser directly

 

since that, i always used that one...

 

I guess firefox can be loaded via labview's dotrnet node ... and ... nevermind

0 Kudos
Message 4 of 9
(194 Views)

Hi All

 

Thank you for your support.

That's a good start for me.

 

BR

Bee

0 Kudos
Message 5 of 9
(143 Views)

Hi Jacobson

 

May I have your sample with LV 2019 ?

Thank you.

 

BR

Bee

0 Kudos
Message 6 of 9
(127 Views)

@weerapong wrote:

Hi Jacobson

 

May I have your sample with LV 2019 ?

Thank you.

 

BR

Bee


I attached a zip of the code in 2019. I'm not used to using the new backsave feature so hopefully I did that right.

0 Kudos
Message 7 of 9
(81 Views)

Hi Jacobson

 

Thank you very much.

 

BR

Bee

0 Kudos
Message 8 of 9
(45 Views)

Hi,

I have come across the same problem with the addition that I wanted a simple json editor as well. With the possibility of a webview browser in LabVIEW it was quite easy to use the javascript jsoneditor library. 

Check out the "JSON Editor.vi" example in my WebView-Components-for-LabVIEW library. It is not released yet on VIPM, but the JSON editor has been used for a while now. 

 

 

0 Kudos
Message 9 of 9
(15 Views)