title: how to make list of JSONs to JSON of JSONs in python
body: <p>I am having the following list of JSONs, i want to make it into JSON of JSONs and write it.</p>
  <p>I tried the following things, but it did not work properly.</p>
  <pre><code>a_json=
  [['{&quot;a&quot;:{&quot;1624873912000&quot;:&quot;9.0&quot;},&quot;t&quot;:{&quot;1624873912000&quot;:&quot;6773507694756507648&quot;}}',
    '{&quot;a&quot;:{&quot;1624944848000&quot;:&quot;3.0&quot;},&quot;t&quot;:{&quot;1624944848000&quot;:&quot;6773507694756507648&quot;}}',
    '{&quot;a&quot;:{&quot;1624946622000&quot;:&quot;2.0&quot;},&quot;t&quot;:{&quot;1624946622000&quot;:&quot;6773507694756507648&quot;}}'],
   ['{&quot;a&quot;:{&quot;1625627937000&quot;:&quot;8.0&quot;},&quot;t&quot;:{&quot;1625627937000&quot;:&quot;6814251202823729152&quot;}}',
    '{&quot;a&quot;:{&quot;1625740346000&quot;:&quot;4.0&quot;},&quot;t&quot;:{&quot;1625740346000&quot;:&quot;6814251202823729152&quot;}}',
    '{&quot;a&quot;:{&quot;1625741430000&quot;:&quot;3.0&quot;},&quot;t&quot;:{&quot;1625741430000&quot;:&quot;6814251202823729152&quot;}}']]
  
  dummy_j= json.dumps(a_json)
  
  # here i get the result which not proper 
  
  # '[[&quot;{\\&quot;a\\&quot;:{\\&quot;1624873912000\\&quot;:\\&quot;9.0\\&quot;},\\&quot;t\\&quot;:{\\&quot;1624873912000\\&quot;:\\&quot;6773507694756507648\\&quot;}}&quot;, &quot;{\\&quot;a\\&quot;:{\\&quot;1624944848000\\&quot;:\\&quot;3.0\\&quot;},\\&quot;t\\&quot;:{\\&quot;1624944848000\\&quot;:\\&quot;6773507694756507648\\&quot;}}&quot;, &quot;{\\&quot;a\\&quot;:{\\&quot;1624946622000\\&quot;:\\&quot;2.0\\&quot;},\\&quot;t\\&quot;:{\\&quot;1624946622000\\&quot;:\\&quot;6773507694756507648\\&quot;}}&quot;], [&quot;{\\&quot;a\\&quot;:{\\&quot;1625627937000\\&quot;:\\&quot;8.0\\&quot;},\\&quot;t\\&quot;:{\\&quot;1625627937000\\&quot;:\\&quot;6814251202823729152\\&quot;}}&quot;, &quot;{\\&quot;a\\&quot;:{\\&quot;1625740346000\\&quot;:\\&quot;4.0\\&quot;},\\&quot;t\\&quot;:{\\&quot;1625740346000\\&quot;:\\&quot;6814251202823729152\\&quot;}}&quot;, &quot;{\\&quot;a\\&quot;:{\\&quot;1625741430000\\&quot;:\\&quot;3.0\\&quot;},\\&quot;t\\&quot;:{\\&quot;1625741430000\\&quot;:\\&quot;6814251202823729152\\&quot;}}&quot;]]'
  
  # this code I will use for write the JSON in sys.
  with open('dummy.json', 'w') as outfile:
      outfile.write(dummy_j)
  
  </code></pre>