- Usage selectString in FallbackEnumJsonAdapter. (#64)
- Fix FallbackOnNull naming bug with implicit user locale. (#66)
- Fix: Forces WrappedJsonAdapter to re-throw all exceptions. (#60)
-
New: Move all adapter factories to their respective annotations. (#47)
-
New: Added
DefaultOnDataMismatchAdapter
. (#54) -
New: Added
@FilterNulls
annotation and its respective adapter. (#52) -
New: Added
@LastElement
annotation plus adapter (#50) -
New: Added
@Transient
annotation and it's respective adapter. (#49) -
New: Makes
JsonAdapter
for@Wrapped
more strict. (#45) -
Enhancement: Rely on moshi's resialize nulls functionality. (#46)
-
Enhancement: Use moshi's Types.nextAnnotations() where possible. (#44)
-
New: Upgrade to Moshi 1.5.0.
compile 'com.squareup.moshi:moshi:1.5.0'
-
New: Added
SerializeOnlyNonEmpty
for all collections and arrays. -
New: Allow
WrappedJsonAdapter
to fail on un-found value. -
New: Upgrade to Moshi 1.3.0.
compile 'com.squareup.moshi:moshi:1.3.0'
- New:
@FallbackEnum
annotation and it's respective adapter. - New:
@ElementAt
(similar to@FirstElement
but more powerful) and it's respective adapter. - Fix:
@SerializeNulls
adapter now maintains previous writer setting.
-
New: Rename
@UnwrapJson
to@Wrapped
annotation and it's respective adapter toWrappedJsonAdapter
. -
New: Allow manual creation of
@Wrapped
annotation viaWrapped.Factory
. -
New:
@SerializeOnly
&@DeserializeOnly
annotations and their respective adapters. -
New: Upgrade to Moshi 1.3.0.
compile 'com.squareup.moshi:moshi:1.3.0'
-
Fix: Restrict
@Target
for each declared annotation.
- Initial release.
- Introduce few handy adapters:
- SerializeNullsJsonAdapter - Instructs moshi to serialize a value even if it's
null
; - FirstElementJsonAdapter - Instructs moshi to retrieve only the first element of a list;
- UnwrapJsonAdapter - Unwraps a json object under the specified path;
- FallbackOnNullJsonAdapter - Instructs moshi to fallback to a default value in case the json field is
null
.