QueryJSON / Query JSON with SQL
Paste JSON and run real PostgreSQL on it: filter, group, join and aggregate without installing a database. QueryJSON uses PGlite, PostgreSQL compiled to WebAssembly, so it all runs inside your browser tab.
Everything runs in your browser tab. Your data is never uploaded, and it is gone when you close the tab.
SELECT "customer.name" AS customer,
count(*) AS orders,
sum(total) AS spent
FROM json_data
WHERE status = 'paid'
GROUP BY "customer.name"
ORDER BY spent DESC;customer orders spent Priya Shah 2 370.4 Lena Ortiz 2 175.24
Paste JSON, CSV or XML, or open a file, then click Parse. Your data is loaded into a table called json_data.
Use any PostgreSQL you know. The hint under the query box lists your tables and row counts.
Press Ctrl+Enter (⌘+Enter on Mac), then download the result as CSV or JSON, or copy it as Markdown.
FILTER, window functions and CTEs all work.customer.name. Wrap them in double quotes in SQL.JOIN.Yes. QueryJSON uses PGlite, which is PostgreSQL compiled to WebAssembly, running inside your browser tab.
Your data is loaded into a table called json_data. Nested data with several arrays creates extra tables, which are listed under the query box.
Nested fields are named with dots, like customer.name, and PostgreSQL needs double quotes around names that contain dots.
No. The database runs in your browser tab and nothing is sent to a server.