I’m having an issue with escaped double quotes being transmitted via http.
I’m manually building a JSON object and sending it to our JSON http server. The transmit occurs without error. The problem is that the server receives the string with the escape characters.
Here’s what the server receives, the escape characters make it invalid JSON:
[{“TS”:1357579371211,“version”:“Gadgeteer application version: 2.0.0”}]
Any idea on how to fix this?
string examplecontent = @ "[{""TS"":1357579371211,""version"":""Gadgeteer application version: 2.0.0""}]";
string Url = "ec2-50-112-197-66.us-west-2.compute.amazonaws.com";
string Path = "/mongo/json.php";
Path += "?" + examplecontent;
T2_HTTP_Client httpClient = new T2_HTTP_Client(new WiFlySocket(Url, 80, wifiBoard));
T2_HTTP_Client.HTTP_Response Response = httpClient.Post(Path);