When working with JSON format please note: Currently, wpDataTables accepts this, and only this, format of JSON (see example): a one-level array of same-structured objects where each object will be parsed as a row, and each field inside of the object as a cell. If your software does not return this format, you would need to prepare, as an example some PHP adapter to return one of the formats that wpDataTables would accept.
As the error itself indicated, the structure of the file is incorrect. Please have a look at our documentation on how to correctly create a table using JSON files
hi admin, I was previously trying this lite version of wpdatatable. I'm having a problem, I have a json link with this address:
https://hargapangan.id/getjson?option=com_gtpihps&task=json.statFluctuationByCommodity&commodity_id=1
When I try to enter the link in the wpdatatable, the message Please provide a correct format for the cell always appears.
what is the solution for this error message
Hi Hery
Thank you for reaching out to us.
When working with JSON format please note: Currently, wpDataTables accepts this, and only this, format of JSON (see example): a one-level array of same-structured objects where each object will be parsed as a row, and each field inside of the object as a cell. If your software does not return this format, you would need to prepare, as an example some PHP adapter to return one of the formats that wpDataTables would accept.
As the error itself indicated, the structure of the file is incorrect. Please have a look at our documentation on how to correctly create a table using JSON files
https://wpdatatables.com/documentation/creating-wpdatatables/creating-wpdatatables-from-json-input/