title: How to merge 2 JSON array files?
body: <p>I have multiple files with JSON arrays from web scraping. They all look somewhat like this:</p>
  <pre><code>db_1.txt
  [
  {&quot;title&quot;: &quot;Title1&quot;, &quot;price&quot; : 21.37},
  {&quot;title&quot;: &quot;Title2&quot;, &quot;price&quot; : 32.10},
  {&quot;title&quot;: &quot;Title3&quot;, &quot;price&quot; : 221.67}
  ]
  
  db_2.txt
  [
  {&quot;title&quot;: &quot;Title4&quot;, &quot;price&quot; : 121.37},
  {&quot;title&quot;: &quot;Title5&quot;, &quot;price&quot; : 232.10}
  ]
  </code></pre>
  <p>How can I merge those files together while keeping same JSON array format? I obviously tried appending line by line with removing or adding ',' where needed but this is not probably as elegant and memory efficient way possible.</p>