如何创建此对象以与Service.Put/Post Json一起使用

如何创建此对象以与Service.Put/Post Json一起使用,json,vb.net,codeigniter,object,Json,Vb.net,Codeigniter,Object,我正在用Vb.net中的Json和Post方法做一些尝试 我创建了一个带有关键点的实体对象 以暗体为对象 body = New With { Key .title = tittle, Key .price = price, how can i put and if here? if 1 > 2 then key .test = 1000 end i

我正在用Vb.net中的Json和Post方法做一些尝试

我创建了一个带有关键点的实体对象

以暗体为对象

body = New With {
            Key .title = tittle,
            Key .price = price,
            how can i put and if here?
            if 1 > 2 then
            key .test = 1000
            end if
            }
我需要创建一个实体,或在一个实体中连接两个实体:

body = New With {
            Key .title = tittle,
            Key .price = price,
            }

body1 = new with { 
            key .test = 1000
             }
bodyFinall=body+body

或者类似的。有可能吗? 真的谢谢