Json Adapter
Converts Java values to JSON, and JSON values to Java.
JsonAdapter instances provided by Moshi are thread-safe, meaning multiple threads can safely use a single instance concurrently.
Custom JsonAdapter implementations should be designed to be thread-safe.
Types
Functions
failOnUnknown
Link copied to clipboard
Returns a JSON adapter equal to this, but that throws a JsonDataException when unknown names and values are encountered.This constraint applies to both the top-level message handled by this type adapter as well asto nested messages.
fromJson
Link copied to clipboard
fromJsonValue
Link copied to clipboard
indent
Link copied to clipboard
lenient
Link copied to clipboard
nonNull
Link copied to clipboard
nullSafe
Link copied to clipboard
serializeNulls
Link copied to clipboard
toJson
Link copied to clipboard
toJsonValue
Link copied to clipboard