I'm facing JSON encoding issue.
I have submitted my data to server on below formate to save remarks.
{
Remarks = "test apple """ ";
}
Then while fetching the data from the server, I'm receiving different formate like output:
{
Remarks = "test apple \U00e2\U0080\U009c\U00e2\U0080\U009d\U00e2\U0080\U009d\U00e2\U0080\U009d\\n";
}
While submitting data I'm using JSON serialisation.
NSData *jsonData
= [NSJSONSerialization dataWithJSONObject: dict
options: NSJSONWritingPrettyPrinted
error: nil];
if (jsonData)
{
NSString* jsonString
= [[NSString alloc]
initWithData: jsonData
encoding: NSUTF8StringEncoding];
NSLog(@"posting params: %@", jsonString);
}
My question is why I'm not getting I have submitted. I'm facing only double quote (") and single (') symbols.
Any one have idea?