Skip to content

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

@adnanshaheen

Description

@adnanshaheen
  • 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions