Im in trouble, how i can write post data like this(code below) with Content-Type: application/json in C#?
{
"snippet": {
"data": "t1",
"data2": "t2",
"data3": "t3",
"data4": "t4"
},
"data": {
"st": "bxx"
}
}
Damn guys, i can't undestand how i can use JSON Serialization with my code:( Help pls little girl:D Im a newbuy. Put please { "snippet": { "data": "t1", "data2": "t2", "data3": "t3", "data4": "t4" }, "data": { "st": "bxx" } }
with JSON Serialization in my code:
var resultHttpPost = ZK.HttpPost("https://urlcom", "here is need be code with json", "application/json", "", "iso-8859-1", ZK.InterfacesLibrary.Z.Http.ResponceType.HeaderAndBody);
I just can't understand how i merge it and put right escapes in json code:(
{
"snippet\": {
"data\": "t1",
"data2\": "t2",
"data3\": "t3",
"data4\": "t4"
},
"data\": {
"st\": "bxx"
}
}
Doesnt worked:(