Gson fails to parse simple map
See original GitHub issueWhen parsing the following json with gson (using 2.2.2 from maven-central),
gson (fromJson) throws an:
JsonSyntaxException: "duplicate key: null"
whereby the json is created by gson (toJson) itself.
Json:
{"appProperties":{"server.configuration.reset":"false","server.db.jndi":"testDB"
,"xml.basedata.list":"basedata.xml","server.configuration.cache":"false","xml.la
yout.list":"","server.rolemapper":"InsertionRoleMapper","xml.content.list":"data
.xml"}}
http://json.parser.online.fr/ validates the string as correct...
Original issue reported on code.google.com by phil...@meisen.net
on 15 Feb 2013 at 12:04
Issue Analytics
- State:
- Created 9 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Issue 501 in google-gson: Gson fails to parse simple map
meisen.net: Gson fails to parse simple map http://code.google.com/p/google-gson/issues/detail?id=501. When parsing the following json with gson (using 2.2.2 ...
Read more >GSON - unable to parse Json to complex POJO having List ...
The reason for the exception is that JsonNode is an abstract class that Gson cannot create a default instance for it.
Read more >Gson Deserialization Cookbook - Baeldung
In this cookbook, we're exploring the various ways to unmarshall JSON into Java objects, using the popular Gson library. 1. Deserialize JSON to ......
Read more >SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
The JavaScript exceptions thrown by JSON.parse() occur when string failed to be parsed as JSON.
Read more >Java Gson - JSON serialization and deserialization ... - ZetCode
It is easy for humans to read and write and for machines to parse and ... Map; public class GsonToJson { public static...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Original comment by
mark.but...@oi-sys.com
on 11 Jul 2013 at 4:22Thanks @TheDoctorOne, that does look suspicious and we should look into it.