PostgreSQL has a lot of functions for working with JSON data. However, it seems to be difficult to import JSON data, since the COPY command does not support JSON.
Assuming I have a file named data.json
that contains JSON data like the following:
[
{"id":1, "name": "Jakob"},
{"id":2, "name": "Klara"}
]
Is there a simple way to import that JSON data file just using psql?