Add a table to your article that displays JSON data in rows and columns.
- Apple News Format
- Apple News API
To add a table with JSON-formatted data, add a component with the role property set to
datatable. Set up your table by providing an array of data descriptors that communicate the following:
• Data types
• Unique keys
• Data formats
In the DataTable component, you use
data to add your data in key-value pairs that correlate your data with the data descriptors.
You can apply styles to adjust the appearance of your table using the
table property of the ComponentStyle object used by the table. You can specify styles for individual rows, columns, and cells as well as for the entire table. (See TableStyle for more information.)