LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build a Json with labview

Solved!
Go to solution

É que os tudo que é referente ao mesmo item deve estar dentro do mesmo objeto daquele equipamento, assim que funciona a uma estrutura json

0 Kudos
Message 11 of 17
(167 Views)

@leandrofeder wrote:

É que os tudo que é referente ao mesmo item deve estar dentro do mesmo objeto daquele equipamento, assim que funciona a uma estrutura json


Translated with deepl:

It's just that everything that refers to the same item must be inside the same object of that equipment, that's how a json structure works.

 

You wrote about 'how remove the duplicates of my JSON'. But I don't see any duplicates.

 

What is your expected JSON structure?

Do you want something like: EQ1 { TCP { 1{}, 2{}, 3{} } }, EQ2 { TCP { 1{}, 2{}, 3{} } }  ?

 

 

0 Kudos
Message 12 of 17
(163 Views)

I'm sorry for my bad English, but that's exactly what I need

 

EQ1 { TCP { 1{}, 2{}, 3{} } }, EQ2 { TCP { 1{}, 2{}, 3{} } }

0 Kudos
Message 13 of 17
(152 Views)

Could you help me with this?

0 Kudos
Message 14 of 17
(124 Views)
Solution
Accepted by topic author leandrofeder

I do not use JSONText in this way usually, but this would get you there without having to define the cluster.

Defining the cluster seems comparatively easier, if it is fixed.

Message 15 of 17
(111 Views)
Solution
Accepted by topic author leandrofeder

Hi,

 

Your JSON structure is not easily translatable in LabVIEW, because you only use objects {} where arrays [] would be much more practical.

 

Here is a simple solution with a slightly modified structure:

raphschru_3-1734645306481.png

 

 

If you cannot modify your JSON structure, here is an hybrid solution:

raphschru_5-1734645420292.png

 

Regards,

Raphaël.

 

Message 16 of 17
(96 Views)

Thank you so much, work's perfectly

0 Kudos
Message 17 of 17
(39 Views)