annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Build a Json with labview

Risolto!
Vai alla soluzione

É 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
Messaggio 11 di 17
1.009Visualizzazioni

@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
Messaggio 12 di 17
1.005Visualizzazioni

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
Messaggio 13 di 17
994Visualizzazioni

Could you help me with this?

0 Kudos
Messaggio 14 di 17
966Visualizzazioni
Soluzione
Accettato da autore argomento 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.

Messaggio 15 di 17
953Visualizzazioni
Soluzione
Accettato da autore argomento 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.

 

Messaggio 16 di 17
937Visualizzazioni

Thank you so much, work's perfectly

0 Kudos
Messaggio 17 di 17
880Visualizzazioni