docs.unity.cn
    Show / Hide Table of Contents

    Struct JsonWriterOptions

    Structure used to define custom behavior when writing JSON using the JsonWriter.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Serialization.Json
    Syntax
    public struct JsonWriterOptions

    Properties

    Indent

    The indent value to use for the writer.

    Declaration
    public int Indent { readonly get; set; }
    Property Value
    Type Description
    Int32

    Minified

    Gets or sets the value indicating whether the JsonWriter should skip formatting the output. This skips indentation, newlines and whitespace.

    Declaration
    public bool Minified { readonly get; set; }
    Property Value
    Type Description
    Boolean

    Simplified

    Gets or sets the value indicating whether the JsonWriter should use JSON formatting. This skips optional quotes and commas.

    Declaration
    public bool Simplified { readonly get; set; }
    Property Value
    Type Description
    Boolean

    StringEscapeHandling

    Defines how special characters should be escaped when writing strings.

    Declaration
    public bool StringEscapeHandling { readonly get; set; }
    Property Value
    Type Description
    Boolean
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, May 11, 2023