# SerializeAllVariablesToJSON(bool)

Method in [InMemoryVariableStorage](https://docs.yarnspinner.dev/2.0/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage)

## Summary

Export variable storage to a JSON string, like when writing save game data.

```csharp
public string SerializeAllVariablesToJSON(bool prettyPrint = false)
```

## Parameters

| Name               | Description |
| ------------------ | ----------- |
| `bool` prettyPrint |             |
