> For the complete documentation index, see [llms.txt](https://jrcooler.gitbook.io/easy-multiplayer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jrcooler.gitbook.io/easy-multiplayer/messenger/serialization.md).

# Serialization

Serialization is straightforward: we serialize each parameter to JSON, send it, and then deserialize it on the receiving end. For more information on this process, check out the [JSON.net documentation](https://www.newtonsoft.com/json/help/html/Introduction.htm).

> Since M*essenger* uses json serialization, custom class references are supported as well!\
> `Messenger.ToServer(MyMessage, MyCustomClass);`

If you want to see how Messenger utilizes JSON serialization, take a look at the `Messenger.Serialization.cs` class.

There are also examples in the samples folder itself, please go to the [samples page](https://jrcooler.gitbook.io/easy-multiplayer/messenger/pages/rkbqiWiylu9nBB2GneVi#messengersamplecomplex.cs) for more explanation.
