Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'\' in value returns ERROR: Unknown escape character #50

Closed
GoogleCodeExporter opened this issue Jan 31, 2016 · 2 comments
Closed

'\' in value returns ERROR: Unknown escape character #50

GoogleCodeExporter opened this issue Jan 31, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
 rapidjson::Document doc;
 doc.Parse<0>(std::string::jsonIn.c_str());
 if (doc.HasParseError())
   {
      cerr << "ERROR: " << doc.GetParseError() << endl;
   }

What is the expected output? What do you see instead?
"ERROR: Unknown escape character"

What version of the product are you using? On what operating system?
0.11

Please provide any additional information below.
JSON:
{
   "DataDir":"E:\Something"
}

Original issue reported on code.google.com by patle...@gmail.com on 7 Dec 2012 at 10:18

@GoogleCodeExporter
Copy link
Author

This error is correct.

"\S" is invalid JSON string. Need "E:\\Something".

You may use a JSON validator online to verify this.

Original comment by milo...@gmail.com on 8 Dec 2012 at 1:59

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Yes you are right, I didn't know that. Sorry for the bug report then.

Original comment by patle...@gmail.com on 8 Dec 2012 at 1:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant