Hi,
I am sending json string with UTF 8 encoded document bytees string from asp.net and receiving the json from c++ program , i am getting parse error while trying to parse the received json string to json object
string jsonStr = string( body.begin(), body.end() );
json j = json::parse(jsonStr);
Asp.net Json string
string docBytesStr = System.Text.Encoding.UTF8.GetString(docBytes, 0, docBytes.Length);
string jsonData = "{ \"template\" : \"1\", \"doc\":\"" + docBytesStr + "\" }";
Hi,
I am sending json string with UTF 8 encoded document bytees string from asp.net and receiving the json from c++ program , i am getting parse error while trying to parse the received json string to json object
string jsonStr = string( body.begin(), body.end() ); json j = json::parse(jsonStr);Asp.net Json string
string docBytesStr = System.Text.Encoding.UTF8.GetString(docBytes, 0, docBytes.Length); string jsonData = "{ \"template\" : \"1\", \"doc\":\"" + docBytesStr + "\" }";