取消
显示结果 
搜索替代 
您的意思是: 

Build a Json with labview

已解决!
转到解答

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

0 项奖励
11 条消息(共 17 条)
933 次查看

@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 项奖励
12 条消息(共 17 条)
929 次查看

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 项奖励
13 条消息(共 17 条)
918 次查看

Could you help me with this?

0 项奖励
14 条消息(共 17 条)
890 次查看
解答
接受人 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.

15 条消息(共 17 条)
877 次查看
解答
接受人 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.

 

16 条消息(共 17 条)
862 次查看

Thank you so much, work's perfectly

0 项奖励
17 条消息(共 17 条)
805 次查看