title: how to split jq output at every json object
body: <pre><code>{
    "title": "...",
    "description": "...",
    "languageKey": "ja"
  }    {
    "title": "...",
    "description": "...",
    "languageKey": "ja"
  }    {
    "title": "...",
    "description": "...",
    "languageKey": "ja"
  }
  </code></pre>
  
  <p>This output is fed to a curl request</p>
  
  <p>ref: <a href="https://www.elastic.co/blog/loading-wikipedia" rel="nofollow noreferrer">https://www.elastic.co/blog/loading-wikipedia</a></p>
  
  <pre><code>curl localhost:9200/dewikiquote/_search -d '{"query": {"match_all":{}}}' \
  | jq '.hits.hits[] | ._source' \
  | jq '{title: .heading[0], description: .text, languageKey: "ja"} \
  | curl -H 'Content-Type: application/json'  -XPUT 'http://localhost:11223/context/api/add' -d @-
  </code></pre>
  
  <p>But below java endpoint is hit only once and the map <code>data</code> has only one title, description and languagekey. Why are the other json items lost?</p>
  
  <pre><code>@RequestMapping(path = "/api/add", method = RequestMethod.PUT)
  public void add(@RequestBody Map&lt;String, String&gt; data)
  { 
  ...
  </code></pre>
  
  <p>Is that because the jq output is not split at every json object? if yes how do I do that with jq?</p>