1

For a school project about E.V chargingstations with OCCP communication. I have to Set up a network and use openscource programs.

One of the requierd programs is: Maven v3.9.1 Once I try to run the code in VisualStudio I get the following error massage: Invalid escape character in string, jsonc

The code

Screenshot visualstudio code

{
    "workbench.colorTheme": "Default Light+",
    "git.path":"C:\Users\de Blaaij\Desktop\OCCP\apache-maven-3.9.1\bin\mvn.cmd"
}

The error

Value expected
Invalid escape character in string.

Used software for the project

I'm using windows

I have worked trough the readme files of the program and the related readme file from the opensource software. A fellow student also helped me out here, but we can't get rid of this error.

If anyone knows a way to fix this problem, I be happy to hear it.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
  • 1
    That's invalid JSON, basically. Your backslashes should be doubled. It's got nothing to do with the code processing it really (beyond that they require valid JSON) - it's just an invalid JSON file. (Backslash in a JSON string is used as an escape character - two backslashes in a row are used to represent a single "real" backslash.) – Jon Skeet Apr 06 '23 at 11:13
  • In addition to the incorrect use of backslashes, that config option is for the path of Git, so the Maven executable doesn't belong in that config option. – Mark Rotteveel Apr 08 '23 at 12:05

0 Answers0