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

Method setStrictness

gson/src/main/java/com/google/gson/GsonBuilder.java:599–603  ·  view source on GitHub ↗

Sets the strictness of this builder to the provided parameter. This changes how strict the RFC 8259 JSON specification is enforced when parsing or writing JSON. For details on this, refer to JsonReader#setStrictness(Strictness) and {@lin

(Strictness strictness)

Source from the content-addressed store, hash-verified

597 * @since 2.11.0
598 */
599 @CanIgnoreReturnValue
600 public GsonBuilder setStrictness(Strictness strictness) {
601 this.strictness = Objects.requireNonNull(strictness);
602 return this;
603 }
604
605 /**
606 * By default, Gson escapes HTML characters such as < > etc. Use this option to configure

Callers 13

testSetStrictnessMethod · 0.95
setLenientMethod · 0.95
testWriteAfterCloseMethod · 0.45
testPrematureCloseMethod · 0.45
JsonStreamParserMethod · 0.45
parseReaderMethod · 0.45
toJsonMethod · 0.45

Calls

no outgoing calls