# JsonSerializerOptions

Kind: Struct · Namespace: Sansar.Utility · Assembly: Sansar.Script.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-struct" data-pagefind-filter="kind:Struct">Struct</span>
<span data-pagefind-filter="namespace:Sansar.Utility">Namespace <a href="/scripting/api/sansar.utility"><code>Sansar.Utility</code></a></span>
</div>

<span id="T:Sansar.Utility.JsonSerializerOptions"></span>

Options which control the serialization and deserialization process

```csharp
public struct JsonSerializerOptions
```

## Members at a glance

| Kind | Members |
|---|---|
| **Properties** | [SerializeReferences](#serializereferences) |

## Properties

### SerializeReferences

<div class="api-card">
<span id="P:Sansar.Utility.JsonSerializerOptions.SerializeReferences"></span>

```csharp signature
[get: System.Runtime.CompilerServices.IsReadOnly]
public bool SerializeReferences { get; set; }
```

Controls how references are serialized.

**Value:** [bool](https://learn.microsoft.com/dotnet/api/system.boolean) — When true references are maintained instead of serializing the objects directly.

<details class="api-remarks"><summary>Remarks</summary>

Referential loops with this setting false will throw an exception.

</details>

</div>




<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>