Timeline | Data serialization

# 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<br>start", "start": "2014-01-23"}, {"id": 2, "content": "item 2", "start": "2014-01-18"}, {"id": 3, "content": "item 3", "start": "2014-01-21"}, {"id": 4, "content": "item 4", "start": "2014-01-19", "end": "2014-01-24"}, {"id": 5, "content": "item 5", "start": "2014-01-28", "type": "point"}, {"id": 6, "content": "item 6", "start": "2014-01-26"} ]