Error in parsing json string { "a\b" : 123 }

Oct 25, 2010 at 9:07 AM

Hi,

I am trying to parse the following string by calling JObject.Parse() method

{ "a\b" : 123 }

But this throws an exception.

However, if I pass { "a\\b" : 123 }, it parses okay. This string is entered by users in my application, and I don't want them to type "\\" in place of "\".

Any thoughts on this?

- Ishaan