Java: Deserializing JSON structure to Map<String, Object>
I've got a JSON string that I want to convert to a Map structure where Object is either a Java version of a basic type (i.e. String, Int, Double), a Map. or a List. The sample string I'm using for my tests is: "{\"cases\":[{\"documents\":[{\"files\":[{\"name\":\"a.pdf\"}]}]}]}" This should read as an array of cases that each have an array of documents, that each have an array of files, that each have a name I've tried Google's Gson, but Gson gson = new Gson(); List<Map<String, Object>> results = gson.fromJson(dictString, List.class); gives me: com.google.gson.JsonParseException: The