Menu

#3 Errors on string value ending with " / or \

open
nobody
None
5
2012-01-10
2012-01-10
TrudyC
No

it doesn't like escaped double-quote, solidus, or reverse solidus at the end of a string value. According to http://json.org if you have a double-quote, solidus, or reverse solidus in a string value you must escape these characters by preceding them with a reverse solidus. So, the end of the string value as it goes to the parser would look like thisdouble-quote - \"",solidus - \/",reverse solidus - \\",In each of these three cases, the parser available here throws a COM exception in my VB 2010 ASP.NET implementation. In the case of a double-quote, the message is "Index was outside the bounds of the array". In the case of solidus and reverse solidus, the message is "One of the identified items was in an invalid format"

Discussion


Log in to post a comment.

MongoDB Logo MongoDB