Returns a new JSON reader configured for the settings on this Gson instance. <p>The following settings are considered: <ul> <li>{@link GsonBuilder#setStrictness(Strictness)}. If no {@linkplain GsonBuilder#setStrictness(Strictness) explicit strictness has been set} the created reader
(Reader reader)
| 796 | * </ul> |
| 797 | */ |
| 798 | public JsonReader newJsonReader(Reader reader) { |
| 799 | JsonReader jsonReader = new JsonReader(reader); |
| 800 | jsonReader.setStrictness(strictness == null ? Strictness.LEGACY_STRICT : strictness); |
| 801 | return jsonReader; |
| 802 | } |
| 803 | |
| 804 | /** |
| 805 | * This method deserializes the specified JSON into an object of the specified class. It is not |