# Serialization and deserialization

This example shows how to serialize and deserialize JSON data, and load this in the Timeline via a DataSet. Serialization and deserialization is needed when loading or saving data from a server.

[ { "id": 1, "content": "item 1", "start": "2014-01-01T01:00:00" }, { "id": 2, "content": "item 2", "start": "2014-01-01T02:00:00" }, { "id": 3, "content": "item 3", "start": "2014-01-01T03:00:00" }, { "id": 4, "content": "item 4", "start": "2014-01-01T04:00:00", "end": "2014-01-01T04:30:00" }, { "id": 5, "content": "item 5", "start": "2014-01-01T05:00:00", "type": "point" }, { "id": 6, "content": "item 6", "start": "2014-01-01T06:00:00" } ]