Answers for "com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON"

1

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();
Posted by: Guest on August-23-2020

Code answers related to "com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON"

Code answers related to "Javascript"

Browse Popular Code Answers by Language