discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

escape " in map's key #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Map<String, String> map = new HashMap<String, String>();
map.put("ab\"c", "a\"bc");

result is
{"ab"c":"a\"bc"}
should be
{"ab\"c":"a\"bc"}

Original issue reported on code.google.com by zhouyanm...@gmail.com on 16 Dec 2009 at 7:01

GoogleCodeExporter commented 9 years ago
This issue could be merged with #178.
Tried to build from svn head, but it doesn't seem to contain fix yet.
Is there any quick workaround proposed to escape keys properly?

Original comment by marek.ho...@gmail.com on 25 May 2010 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 20 Aug 2010 at 5:34