Exception in thread "main" com.google.gson.JsonParseException:
Expecting object found: "America/New_York"
at
com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:
100)
Thank you for any advice on this.
limpb...@gmail.com
unread,
May 3, 2011, 12:09:59 AM5/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-gson
Your input still needs to be a JSON object, not a JSON string. If you
do 'toJson()' on the desired object you'll be able to discover the
format GSON is expecting. If you really want it to start as a string,
you'll need to write a custom type adapter.