parseJsonResponse

fun <D : Operation.Data> Operation<D>.parseJsonResponse(jsonReader: JsonReader, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, deferredFragmentIdentifiers: Set<DeferredFragmentIdentifier>? = null): ApolloResponse<D>

Deprecated

Use parseResponse or jsonReader.toApolloResponse() instead

Replace with

parseResponse()

Reads a GraphQL Json response to a ApolloResponse. GraphQL Json responses look like so:

{
"data": ...
"errors": ...
"extensions": ...
}

This method takes ownership of jsonReader and will always close it

Throws

IOException

if reading jsonReader fails

if the data is not valid json

if the data is not of the expected type