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

Displaying \\?\Volume{guid} from string to json giving error #1864

Closed
adnanshaheen opened this issue Dec 9, 2019 · 2 comments
Closed

Displaying \\?\Volume{guid} from string to json giving error #1864

adnanshaheen opened this issue Dec 9, 2019 · 2 comments

Comments

@adnanshaheen
Copy link

  • Describe what you want to achieve.
    Want to convert a string let's say \\?\Volume{1651d5ac-0000-0000-0000-501f00000000}\ in json
  • Describe what you tried.
    Tried to convert a string to json "{"mods": [{"volume": "\\?\Volume{1651d5ac-0000-0000-0000-501f00000000}\"}]}"
    Gives an error while json.parse as

[json.exception.parse_error.101] parse error at line 1, column 34: syntax error while parsing value - invalid string: forbidden character after backslash; last read: '"\?\V'

  • Describe which system (OS, compiler) you are using.
    Windows 10, VS2017
  • Describe which version of the library you are using (release version, develop branch).
    version 3.5.0
@nickaein
Copy link
Contributor

If the string is hard-coded inside the code, are the backslashes escaped correctly?

See this example: https://wandbox.org/permlink/Pka92SX9ChjWYlVL

@adnanshaheen
Copy link
Author

Thanks

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

2 participants