Add JObject to JObject

前端 未结 3 1295
北海茫月
北海茫月 2021-01-03 23:21

I have a json structure like this:

3条回答
  •  离开以前
    2021-01-03 23:26

    One more example

    var jArray = new JArray {
        new JObject
        {
            new JProperty("Property1",
                new JObject
                {
                    new JProperty("Property1_1", "SomeValue"),
                    new JProperty("Property1_2", "SomeValue"),
                }
            ),
            new JProperty("Property2", "SomeValue"),
        }
    };
    

提交回复
热议问题