A set of GSON serialiser/deserialisers for dealing with Java 7 "three ten" backport of the java.time
entities. Wherever possible, ISO 8601 string representations are used.
Note: if you are using Java 8 then you're in the wrong place - use the gson-javatime-serialisers instead.
(Details to be included once released to Maven Central)
final Gson gson = Converters.registerOffsetDateTime(new GsonBuilder()).create();
final OffsetDateTime original = OffsetDateTime.now();
final String json = gson.toJson(original);
final OffsetDateTime reconstituted = gson.fromJson(json, OffsetDateTime.class);