I received an API response from a store in JSON format containing three records at the first level.
The structure of the response includes data, error_no, msg fields.
Within the data field at the second level, I have data.items, data.total_pages, data.total_results.
Under data.items (at the third level), there are the specific records that need to be loaded into a Tabulator table. How can I extract and select only these items for loading into the table?
https://i.sstatic.net/pgV9g.jpg
function loadTableTab(tableData) {
var table = new Tabulator("#table", {
data:tableData, //set initial table data
columns:[
{title:"product_title", field:"product_title"},
{title:"sale_price", field:"sale_price"},
],
});
}