Package com.apollographql.apollo3.api.json
Types
Link copied to clipboard
class BufferedSinkJsonWriter @JvmOverloads constructor(sink: BufferedSink, indent: String? = null) : JsonWriter
Content copied to clipboard
A JsonWriter that writes json to an okio BufferedSink
Link copied to clipboard
A JsonWriter that reads json from an okio BufferedSource
Link copied to clipboard
A simple wrapper class that can be put in Map to indicate an arbitrary precision json number
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
class MapJsonReader @JvmOverloads constructor(val root: Map<String, Any?>, pathRoot: List<Any> = emptyList()) : JsonReader
Content copied to clipboard
A JsonReader that reads data from a regular Map
Link copied to clipboard
A JsonWriter that writes data to a Map
Functions
Link copied to clipboard
inline fun buildJsonByteString(indent: String? = null, crossinline block: JsonWriter.() -> Unit): ByteString
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun buildJsonString(indent: String? = null, crossinline block: JsonWriter.() -> Unit): String
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reads the reader and maps numbers to the closest representation possible in that order:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun JsonWriter.writeArray(crossinline block: JsonWriter.() -> Unit)
Content copied to clipboard
Link copied to clipboard
inline fun JsonWriter.writeObject(crossinline block: JsonWriter.() -> Unit)
Content copied to clipboard