Rfc3339Date Json Adapter
Formats dates using RFC 3339, which is formatted like 2015-09-26T18:23:50.250Z. This adapter is null-safe. To use, add this as an adapter for Date.class on your Moshi.Builder:
Moshi moshi = new Moshi.Builder()
.add(Date.class, new Rfc3339DateJsonAdapter())
.build();
Functions
fail On Unknown
Link copied to clipboard
from Json Value
Link copied to clipboard
serialize Nulls
Link copied to clipboard
to Json Value
Link copied to clipboard