![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/07_export_json-1024x461.png)
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/08_export_json.png)
We create the Grid.
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/01_export_json-1024x385.png)
1. We create the grid based on the table “Orders“.
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/02_export_json-1024x414.png)
2. In the side panel, we go to “Export -> Export types” and we are going to work with the JSON option.
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/03_export_json.png)
3. In the general settings we select “Select columns“. So that when exporting we can select the columns to display.
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/04_export_json.png)
4. In the Default values, we configure it as follows .
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/05_export_json-1024x437.png)
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/06_export_json.png)
5. Finally, select the “Run application” button on the toolbar to generate the query.
![](https://www.scriptcase.net/tutorials/wordpress/wp-content/uploads/2020/11/05_filter_modal.png)
To see more examples created with Scriptcase, go to: Examples: Complete systems and applications with Scriptcase
Comment this post