title: jq reshaping data to flat json
body: <p>I am working with some json data I would like to insert in a SQL database. The data are from from Google Cloud Firestore </p>
  
  <p>Input :</p>
  
  <pre><code>{
    "0": {
      "filed1": "xxxx",
      "field": "zzzz"
  
    },
    "1": {
      "field1": "xxx",
      "filed2": "zzz"
    }
  }
  </code></pre>
  
  <p>Desired output, I don't want to store my field in an id body, instead I want to save my id alongside of the others fields as in a flat objet </p>
  
  <pre><code>{
    {
      "id": 0,
      "filed1": "xxxx",
      "field": "zzzz"
    },
    {
      "id": 2,
      "field1": "xxx",
      "filed2": "zzz"
    }
  }
  </code></pre>
  
  <p>Many thanks in advance </p>