Compartir a través de


JsonWriter.Lenient Property

Definition

Returns true if this writer has relaxed syntax rules. -or- Configure this writer to relax its syntax rules.

public bool Lenient { [Android.Runtime.Register("isLenient", "()Z", "")] get; [Android.Runtime.Register("setLenient", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("isLenient", "()Z", "")>]
[<set: Android.Runtime.Register("setLenient", "(Z)V", "")>]
member this.Lenient : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns true if this writer has relaxed syntax rules.

Java documentation for android.util.JsonWriter.isLenient().

Property setter documentation:

Configure this writer to relax its syntax rules. By default, this writer only emits well-formed JSON as specified by RFC 4627. Setting the writer to lenient permits the following: <ul> <li>Top-level values of any type. With strict writing, the top-level value must be an object or an array. <li>Numbers may be Double#isNaN() NaNs or Double#isInfinite() infinities. </ul>

Java documentation for android.util.JsonWriter.setLenient(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to