Serialization is the process of taking the data contained in a form and converting it into JSON or some other format so that you can transport it. Alpaca serializes data for you automatically, taking into account references, nested structures, types and more. By default, Alpaca serializes into JSON that is compatible with the underlying JSON schema model.

Simple Example

Here is a really simple form that is loaded from JSON and then serialized back out when you click "Serialize".

{% raw %} {% endraw %}

Objects with References

This example provides a complex object with nested references. It is loaded with data. When you click the "serialize" button, the JSON is produced and displayed.

{% raw %} {% endraw %}