docs.unity3d.com
Search Results for

    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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Serialization.Json
    Assembly: Unity.Serialization.dll
    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
    int

    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
    bool

    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
    bool

    StringEscapeHandling

    Defines how special characters should be escaped when writing strings.

    Declaration
    public bool StringEscapeHandling { readonly get; set; }
    Property Value
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)