serializes the component data into JSON, XML or CSV format
serialize(driver?: string): object[];
Parameters:driver: string
- optional, the format that the data will be serialized into ("json", "csv", "xml"), "json" by defaultReturns serialized data for each item of the component either as an array of JSON objects or as a CSV/XML string.
Example
const data = component.data.serialize("csv");
Related sample: Data. Serialize
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4