I'm using GSON to serialise some object graphs to JSON. These objects graphs use Joda Time entities (DateTime
, LocalTime
etc).
The top Google hit for "gson joda" is this page:
It provides source for a type adapter for org.joda.time.DateTime
. This link is also what is referenced in the GSON User Guide.
I expected to find a pre-rolled library that included joda-time serialisers that I could reference as a Maven dependency - but I can't find one.
Is there one? Or am I forced to replicate that snippet in my own project?