Video: Import data from JSON file to PostgreSQL table in a few clicks

This video shows how to import data from JSON file to PostgreSQL table in a few clicks with Withdata FileToDB, or with the free Import JSON to PostgreSQL online tool. It covers the JSON side and the postgres side.

Import JSON into PostgreSQL: what this does

This shows how to load a JSON file — an API dump, a log export or an app's data — into a PostgreSQL table. It is the reverse of exporting, and useful for getting semi-structured JSON into a queryable, relational table. The video above is the full flow.

Steps

  1. Open Withdata FileToDB and pick your JSON file (an array of objects, or JSON Lines).
  2. Choose PostgreSQL as the destination and connect (host, port, database, user).
  3. Map JSON keys to columns — keys are read as column names; dotted keys map to nested fields.
  4. Pick the load mode: create a new table, append, or update/upsert on a key.
  5. Run the import, then save the session if it repeats.

JSON to PostgreSQL: details worth knowing

FAQ

Can it create the table for me?
Yes — the table can be built from the JSON keys and adjusted afterwards.
What if my JSON is nested?
Flatten it to dotted columns, or store the nested part as jsonb.
Can I update existing rows instead of inserting?
Yes — choose upsert and pick a key column.

See the tool page Import JSON to PostgreSQL, or the app overview Withdata FileToDB.