Closed GoogleCodeExporter closed 9 years ago
You can use a custom TypeAdapter to accomplish this. Please see the
documentation at
https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/
TypeAdapter.html
Original comment by j...@squareup.com
on 9 Aug 2014 at 5:45
I can see no way how to accomplish exactly this. You can get
{v: "new Date(2008, 1, 28, 0, 31, 26)"}
but it's not the same. It's a string rather than constructor invocation.
However, it's no valid JSON either.
Original comment by Maaarti...@gmail.com
on 12 Aug 2014 at 5:01
Original issue reported on code.google.com by
davidcwe...@gmail.com
on 5 May 2014 at 7:44