title: python, cannot convert string to json
body: <p>I am using python 3.10.4. I have a string which is as follows:</p>
  <pre><code>str_obj = &quot;[(190229461780583, 'main'), (302030571463836, 'feature/BRANCH_livestream'), (1071064128966159, 'feature/BRANCH_sensitive'), (1137211553786277, 'main'), (1283366887974580, 'feature/add_sql_vm'), (1492751472739439, 'feature/BRANCH-2977'), (2662272892040840, 'main'), (4078787696930326, 'main')]&quot;
  </code></pre>
  <p>I need to convert it to a json object. I need it in json format for further data extraction. Following <a href="https://appdividend.com/2022/03/22/how-to-convert-python-string-to-json/#:%7E:text=To%20convert%20string%20to%20json%20in%20Python%2C%20use%20the%20json,dictionary%20to%20access%20all%20elements." rel="nofollow noreferrer">this link</a> I used json.loads() to convert it from string to json:</p>
  <pre><code>json_obj = json.loads(str_obj)
  </code></pre>
  <p>However I am getting the error:</p>
  <pre><code>JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  </code></pre>
  <p>I checked <a href="https://stackoverflow.com/questions/16573332/jsondecodeerror-expecting-value-line-1-column-1-char-0">this link</a> but it is not really related to my problem.</p>
  <p><strong>I cannot simply drop &quot;&quot; from str_obj as this is the value I am receiving from an environment variable sent to me from a DevOps pipeline.</strong></p>
  <p><strong>I would like to know what the root cause problem is and how I can resolve it.</strong></p>