如何在.net中Concat JSON对象

时间:2016-04-28 00:50:09

标签: json object serialization

我需要帮助在vb.net中连接两个Json对象

Dim obj1 as object = New With {
                 Key .product= VarProduct,
                 Key .price = VarPrice
                            }


Dim obj2 As Object = New With {
                Key .photo= {
                            New With {
                            Key .source = img1},
                            New With {
                            Key .source = img2}
            }}

我怎样才能加入这两个对象? 我需要这样的结果:

                 Key .product= VarProduct,
                 Key .price = VarPrice,
                Key .photo= {
                            New With {
                            Key .source = img1},
                            New With {
                            Key .source = img2}
            }}

任何帮助都将不胜感激。

0 个答案:

没有答案