Caused by: com.apollographql.apollo.api.internal.json.JsonEncodingException: Use JsonReader.setLenient(true) to accept malformed JSON at path $ code example
Example: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON
Gson gson = new GsonBuilder()
.setLenient()
.create();
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.client(client)
.addConverterFactory(GsonConverterFactory.create(gson))
.build();