1
我要創建一個JSON字符串,它應該是這樣的結尾:添加JObject到另一個JObject在VB.NET
{
"PersonId": "abc",
"Firstname": "Max",
"Lastname": "Muster",
"AddressLine1": "Hauptstrasse 3",
"ZipCode": "8000",
"City": "Zürich",
"ClubRelatedPersonDetails":
{
"IsGliderInstructor": true,
"IsGliderTrainee": false,
"IsTowPilot": true,
}
}
我已經有兩個獨立的JObjects
:
- 一個叫
pers
其中包含所有的名稱和地址信息(PersonId
到City
在上面的例子) - 和另一個叫
clubPers
它包含俱樂部相關的信息(IsGliderInstructor
通過IsTowPilot
)
所以我要補充clubPers
作爲JObject
到pers
,我覺得呢?我怎樣才能在VB.NET中做到這一點?
看吧:http://stackoverflow.com/questions/15413825/how-do-you-add-a-jtoken-to-an -jobject –