title: How can I import JSON data into PostgreSQL with psql?
body: <p>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.</p>
  
  <p>Assuming I have a file named <code>data.json</code> that contains JSON data like the following:</p>
  
  <pre><code>[
    {"id":1, "name": "Jakob"},
    {"id":2, "name": "Klara"}
  ]
  </code></pre>
  
  <p>Is there a simple way to import that JSON data file just using psql?</p>