---
title: Custom serialization
product: Cloud Code
version: 3.1.0
latest_version: 3.1.0
status: This page documents version 3.1.0. The latest version is 3.1.0.
canonical: https://docs.unity.com/en-us/cloud-code/3.1.0/modules/how-to-guides/initialize-modules/custom-serialization
latest_url: https://docs.unity.com/en-us/cloud-code/3.1.0/modules/how-to-guides/initialize-modules/custom-serialization.md
last_updated: 2026-11-20
generated_at: 2026-11-21T13:36:47.683Z
locale: en-us
---

# Custom serialization

> Customize serialization and deserialization with Newtonsoft.Json attributes.

Cloud Code modules use the [Newtonsoft.Json](https://www.newtonsoft.com/json) library to serialize and deserialize data. You can use the `Newtonsoft.Json` attributes to customize the serialization and deserialization of your data.

For example, you can use the `JsonProperty` attribute to change the name of a property in the JSON representation of your data:

```csharp
using Newtonsoft.Json;

public class MyData
{
    [JsonProperty("myProperty")]
    public string MyProperty { get; set; }
}
```

For more information, refer to the [Newtonsoft.Json documentation](https://www.newtonsoft.com/json/help/html/SerializationAttributes.htm).
