I want to parse a windows path in java. this is part of the json:
..."sslkey":"c:\usr\ssl\key.jks"
and this is the code:
JsonObject jsonargs = gson.fromJson(args[0], JsonObject.class);
SSLKEY = jsonargs.get("sslkey").getAsString();
I tried with \
also in the value, but the error that I have is:
Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 133 path $.sslkey
Could you please tell me how I can fix this?
Thank you !