title: Convert json data to newline delimited json to support BQ load using python
body: <p>I am creating a josn file in python cloud functions which will load into BQ in later stage.</p>
  <p>Input json:</p>
  <pre><code>{&quot;data&quot;: [{&quot;DATE&quot;: &quot;2005-10-14 00:00:00&quot;, &quot;ID&quot;: 21.0, &quot;NAME&quot;: &quot;NOM&quot;}, {&quot;DATE&quot;: &quot;2005-10-14 00:00:00&quot;, &quot;ID&quot;: 22.0, &quot;NAME&quot;: &quot;WW&quot;}]}
  </code></pre>
  <p>Expected json with newline delimiter :</p>
  <pre><code>{&quot;DATE&quot;: &quot;2005-10-14 00:00:00&quot;, &quot;ID&quot;: 21.0, &quot;NAME&quot;: &quot;NOM&quot;}
  {&quot;DATE&quot;: &quot;2005-10-14 00:00:00&quot;, &quot;ID&quot;: 22.0, &quot;NAME&quot;: &quot;WW&quot;}
  </code></pre>
  <p>Here is sample code to achieve this</p>
  <pre><code>dat = jsondata['data']
  result = [json.dumps(record) for record in dat]
  for i in result:
      print(i+'\n')
  </code></pre>
  <p>(i+'\n') :=&gt; correctly capturing each record but please help me to capture all the records into a string variable (by appending or update or anyother) because I will again apply <code>json.dumps(json_content)</code> to pass to another function for processing.</p>