title: Merge with jq command the fields of two json files
body: <p>I try to using the jq tools (jq-json-processor) in shell script to merge the fields two json.</p>
  
  <p>Here the content of files:</p>
  
  <p><strong>First file</strong></p>
  
  <pre><code>{ "username": "Bob",
  "password": "verytrickipwd",
  "windows": 6}
  </code></pre>
  
  <p><strong>Second file</strong> (the problem now is I have a new fields)</p>
  
  <pre><code>{ "username": "",
  "password": "",
  "windows": 6,
  "doors": 
  }
  </code></pre>
  
  <p>my expected result</p>
  
  <pre><code>{ "username": "Bob",
  "password": "verytrickipwd",
  "windows": 6,
  "doors": 
  }
  </code></pre>
  
  <p>Using this command:
  <code>jq -f file1.json file2.json</code></p>