title: JSON - string value conversion to List
body: <p>Code used for extraction from JSON</p>
  <pre><code>import json
  string = json.loads(data)
  string['Body']
  
  import base64
  base64.b64decode(string['Body'])
  
  bytes_data = base64.b64decode(string['Body'])
  str(bytes_data, encoding='utf-8')
  </code></pre>
  <p>I have a following format that is extracted from JSON</p>
  <pre><code>&quot;[{&quot;id&quot;:&quot;XXXX_U2_170216:XXXX_U2_170216:FBE_23015.Air&quot;,&quot;values&quot;:[{&quot;v&quot;:&quot;46&quot;,&quot;q&quot;:192,&quot;t&quot;:&quot;2021-10-28T13:47:59.7880096Z&quot;}]},
  {&quot;id&quot;:&quot;XXXX_U2_170216:XXXX_U2_170216:FBE_23015.Atomise&quot;,&quot;values&quot;:[{&quot;v&quot;:&quot;3.1&quot;,&quot;q&quot;:192,&quot;t&quot;:&quot;2021-10-28T13:47:59.7880096Z&quot;}]}]&quot;
  </code></pre>
  <p>Any idea about converting it to actual list</p>
  <pre><code>[{&quot;id&quot;:&quot;XXXX_U2_170216:XXXX_U2_170216:FBE_23015.Air&quot;,&quot;values&quot;:[{&quot;v&quot;:&quot;46&quot;,&quot;q&quot;:192,&quot;t&quot;:&quot;2021-10-28T13:47:59.7880096Z&quot;}]},
  {&quot;id&quot;:&quot;XXXX_U2_170216:XXXX_U2_170216:FBE_23015.Atomise&quot;,&quot;values&quot;:[{&quot;v&quot;:&quot;3.1&quot;,&quot;q&quot;:192,&quot;t&quot;:&quot;2021-10-28T13:47:59.7880096Z&quot;}]}]
  </code></pre>
  <p>things I have tried :</p>
  <pre><code>list(bytearray(bytes_data))
  </code></pre>
  <p>for loop - for this output string, but this is a convoluted way to do it.<br />
  some more conversion stuff. looking for something that is compact.</p>