// Here is the string gson dies on:
String json = "{\"coordinates\": {\"type\": \"Point\", \"coordinates\":
[1.41751613, 52.13286294]}"
// I create my builder as so:
Gson gson = new GsonBuilder().
serializeNulls().
create();
// I then use this builder to put this json in a map:
Map<String,Object> a = gson.fromJson(json, Map.class);
System.out.println(a);
A type-A "freakout" ensues. Thoughts?
My gson version is 2.1 (using maven to grab that jar)
My favourite colour is sometimes green, other times it is blue.
- Sina
Original issue reported on code.google.com by sin...@gmail.com on 2 Mar 2012 at 5:13
Original issue reported on code.google.com by
sin...@gmail.com
on 2 Mar 2012 at 5:13