The JSON format needs to be 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.
Hello,
i have currently a drupal site running where i create tables from json file.
but as off current drupal isn't supported i want to move to wordpress
so i was trying to connect my json file to wp but seems wpdatatables doesn't recognize the json file structure
this is json file from drupal site
https://www.kvvzwaluwen.be/voetbal/wedstrijden-team-1-response.json
and this is json file for wp site
https://wp.kvvzwaluwen.be/voetbal/wedstrijden-team-1-response.json
so i really need to rewrite the whole json file before getting any tables
is there a way make it work from the orignal file what is use in drupal
or do i need to install additional wp plugins
kr
David
Hello David
Thank you for your interest in our plugin.
The JSON format needs to be 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.
Here's the example: https://wpdatatables.com/sample_files/employees.json
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables