I am constructing a JSON Body for the POST method for my Odata endpoint call like below
Newtonsoft.Json.Linq.JObject sample;
sample = new Newtonsoft.Json.Linq.JObject();
sample["status"] = "New";
sample[ "[email protected]"] = "["+"/PROJECT('" + prjBarcode + "')"+"]";
Where [email protected] is an array. I am looking that the JSON to be built like
"status": "New",
"[email protected]":["/PROJECT('PJ1')"]
But with my code above it is generating like
"[email protected]":"[/PROJECT('PJ1')]"
Where the [] comes with in the "" how can I fix this
sampleand how is json generated?sample?