Gantt APIMethodsserializeOn this pageserialize Description Serializes the data into JSON or XML format serialize: (type?: string) => anyParameters type - (optional) string - the format that the data will be serialized into. Possible values: 'json' (default ), 'xml'. Returns data - (object) - a gantt data object Examplegantt.serialize('xml');Related API parse Related Guides Serializing Data into XML and JSON Supported Data Formats