Struct JsonWriter.ObjectScope
Disposable struct to manage opening and closing object scopes.
Namespace: Unity.Serialization.Json
Syntax
public struct ObjectScope : IDisposable
Constructors
ObjectScope(JsonWriter, String)
Creates a new object scope for the given JsonWriter
Declaration
public ObjectScope(JsonWriter writer, string key)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The writer to write to. |
String | key | The key to write. |
Methods
Dispose()
Declaration
public void Dispose()