So I currently trying to modify a WebRequest that's an JSON. I can modify values fine. However, now I want to try, to add an Object:
How the JSON looks like:
"pizza":[
{
"name": "Salame",
"bla" : 5
},
{
"name": "Salame",
"bla" : 5
}
]
How my current result looks like with the following code:
Info // j["pizza"] = System.Collections.ArrayList (based of Fiddler Log)
j["pizza"].Add(new JObject(new JProperty("name", "fungi")))
"pizza":[
{
"name": "Salame",
"bla" : 5
},
{
"name": "Salame",
"bla" : 5
},,
]
(he don't add any Data)
Hopefully someone can help me, figure out how to fix that.
PS:
When I try to do :
j["pizza"].Add('{"name", "fungi"}')
It adds it fine, but sadly as an String.