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. <p>This changes how strict the <a href="https://www.ietf.org/rfc/rfc8259.txt">RFC 8259 JSON specification</a> is enforced when parsing or writing JSON. For details on this, refer to {@link 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 &lt; &gt; 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