Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 629 by
nhutnguy...@gmail.com: convert string to JSON with special
character \u
https://code.google.com/p/google-gson/issues/detail?id=629
What steps will reproduce the problem?
Run this java code:
JsonParser parser = new JsonParser();
JsonElement element =
parser.parse("{\"description\":\"c:\\userDescription.txt\"}");
JsonObject attributes = element.getAsJsonObject();
System.out.println(attributes);
Expected output:
{"description":"c:\userDescription.txt"}
but actually, I see:
Exception in thread "main" com.google.gson.JsonSyntaxException:
java.lang.NumberFormatException: For input string: "serD"
I use Gson 1.5.
Please provide any additional information below.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings