Table of Contents
How to create a table from a JSON file in wpDataTables
Say your HR system can export the employee list as JSON, or a web service returns it from a URL, and you want to show it on your intranet as a table people can search. wpDataTables reads JSON from any URL it can reach and turns every object into a row. Give the URL to Tabella AI, or create a linked table yourself.
What JSON structure can wpDataTables read?
wpDataTables reads a flat JSON array of objects, where every object is a row and every field is a cell. Your data source needs to meet three rules:
- It has data. The array is not empty.
- It has one structure. It is an array of objects with the same set of fields, like the sample below.
- It is reachable. wpDataTables can open the URL from your server, without a login.
[
{
"Name": "Ivor Chen",
"Gender": "Female",
"Marital Status": "Single",
"Department": "Accounting"
},
{
"Name": "David Gordon",
"Gender": "Female",
"Marital Status": "Married",
"Department": "Tech Support"
}
]
This is the start of the sample file employees.json, with 100 made-up employees. Use its URL to follow the steps below.
How do I create a table from a JSON file with Tabella AI?
Paste the JSON URL in the Tabella AI chat, check the preview, and create a linked table.
- Open Tabella AI. Go to wpDataTables → Dashboard and click + Use a file or link.
- Add the URL. In the Add data panel, paste the URL in Public data URL, or click Media Library to pick an uploaded .json file. Click Preview this source.
- Create the table. Check the sample of up to 20 rows, then click Create linked table to keep reading the URL. JSON sources have no Import to database button. The review card says Database import is unavailable for this source or edition. You can still create a linked table.
- Add it to a page. Click Copy shortcode and paste it into a Shortcode block.
Apart from the missing import option, the review card looks like the one for CSV files; see how to create a table from a CSV file for a screenshot.
Video: creating a table from a JSON URL with Tabella AI.
How do I create a table from a JSON file by hand?
Create a table linked to an existing data source, choose JSON file as the source type, paste the URL and click Save Changes.
- Start a linked table. Go to wpDataTables → Create a Table and click Create a data table linked to an existing data source.
- Name the table. Click New wpDataTable and type a name, for example Employees.
- Choose the source type. In the Data source tab, open Input data source type and choose JSON file.
- Paste the URL. Paste the URL of the JSON data in Input file path or URL.
- Save the table. Click Save Changes. wpDataTables reads the data, creates a column for each field and shows the table preview.

How do I set up the JSON table after it is created?
Open the table in the editor and change the table and column settings, the same way as for any other table. For example, click the column settings icon of the Gender column, open the Filtering tab, keep Allow filtering on and set Filter type to Selectbox, so visitors pick a value from a list.

The filter types are Text, Number, Number range, Date range, DateTime range, Time range, Selectbox, Multiselectbox and Checkbox. Read how to add filters for what each one does.
Read how to configure a table in the table editor for every setting.
What should I remember about tables from JSON?
wpDataTables reads a non-empty array of objects with the same fields from a URL it can reach. Paste the URL in Tabella AI, or create a linked table with JSON file as the source type. Keep the fields unchanged after you create the table, and use Nested JSON for rows below the top level or for APIs that need a login.
Where can I read more?
These pages cover other JSON and file sources: