Gson gson = new GsonBuilder() .setLenient() .create(); Retrofit retrofit = new Retrofit.Builder() .baseUrl("http://whatever.com") .addConverterFactory(GsonConverterFactory.create(gson)) .build();
Gson gson = new GsonBuilder() .setLenient() .create(); Retrofit retrofit = new Retrofit.Builder() .baseUrl("http://whatever.com") .addConverterFactory(GsonConverterFactory.create(gson)) .build();
本文标题:Use JsonReader.setLenient(true)
本文链接:https://www.haomeiwen.com/subject/vlibcftx.html
网友评论