I am trying to send JsonArray in Post web service. The structure of the Json is similar like
{
"TestObject": {
"SomeText": "Blah",
"SomeEmptyArray": [{
"SomeNumber": 42,
"SomeBool": true,
"SomeNull": null
}, {
"SomeNumber": 42,
"SomeBool": true,
"SomeNull": null
}, {
"SomeNumber": 42,
"SomeBool": true,
"SomeNull": null
} ]
}
}
I am able to send Simple JsonObject in Web services through:
WWWForm form = new WWWForm();
form.AddField("numpoints", numpoints);
form.AddField("color", color);
form.AddField("backgroundcolor", backgroundcolor);
form.AddField("stmSize", stmSize);
But not able to send JsonArray in this.
I have checked this link
[https://stackoverflow.com/questions/46003824/sending-http-requests-in-c-sharp-with-unity][1]
But I don't find any way to create JsonArray here...