# Sandbox.GameResource.Serialize

```csharp
System.Text.Json.Nodes.JsonObject Serialize()
```

Serialize the current state to a JsonObject

### Returns

`System.Text.Json.Nodes.JsonObject`

Declared in [Sandbox.GameResource](/api/Sandbox.GameResource).
Assembly: `Sandbox.Engine`.
