Package com. squareup. moshi
Moshi is modern JSON library for Android and Java.
Types
Link copied to clipboard
Link copied to clipboard
Customizes how a field is encoded as JSON.
Link copied to clipboard
Converts Java values to JSON, and JSON values to Java.
Link copied to clipboard
Customizes how a type is encoded as JSON.
Link copied to clipboard
Thrown when the data in a JSON document doesn't match the data expected by the caller.
Link copied to clipboard
Thrown when the data being parsed is not encoded as valid JSON.
Link copied to clipboard
Annotates another annotation, causing it to specialize how values are encoded and decoded.
Link copied to clipboard
Reads a JSON (RFC 7159) encoded value as a stream of tokens.
Link copied to clipboard
Writes a JSON (RFC 7159) encoded value to a stream, one token at a time.
Link copied to clipboard
Link copied to clipboard
Factory methods for types.
Functions
Link copied to clipboard
inline fun <T> Moshi.Builder.addAdapter(adapter: JsonAdapter<T>): Moshi.Builder
Content copied to clipboard
Link copied to clipboard
Returns a GenericArrayType with this as its GenericArrayType.getGenericComponentType.
Link copied to clipboard
inline fun <T : Annotation> Set<Annotation>.nextAnnotations(): Set<Annotation>?
Content copied to clipboard
Link copied to clipboard
Returns a type that represents an unknown type that extends T. For example, if T is CharSequence, this returns out CharSequence. If T is Any, this returns *, which is shorthand for out Any?.
Link copied to clipboard