MCPcopy
hub / github.com/google/gson / setLenient

Method setLenient

src/main/java/com/google/gson/stream/JsonReader.java:274–276  ·  view source on GitHub ↗

Configure this parser to be be liberal in what it accepts. By default, this parser is strict and only accepts JSON as specified by RFC 4627 . Setting the parser to lenient causes it to ignore the following syntax errors: Streams that star

(boolean lenient)

Source from the content-addressed store, hash-verified

272 * </ul>
273 */
274 public void setLenient(boolean lenient) {
275 this.lenient = lenient;
276 }
277
278 /**
279 * Returns true if this parser is liberal in what it accepts.

Calls

no outgoing calls