title: Sending python requests and handling JSON lists
body: <p>I am sending requests to a crypto network for data on accounts. You get sent back information, but I haven't yet encountered lists being sent in JSON until now. I want to parse certain information, but am having trouble because the JSON is a list and is not as easy to parse compared to normal JSON data.</p>
  <pre><code>import requests
  import json
  url = ' https://s1.ripple.com:51234/'
  payload = {
      &quot;method&quot;: &quot;account_objects&quot;,
      &quot;params&quot;: [
          {
              &quot;account&quot;: &quot;r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59&quot;,
              &quot;ledger_index&quot;: &quot;validated&quot;,
              &quot;type&quot;: &quot;state&quot;,
              &quot;deletion_blockers_only&quot;: False,
              &quot;limit&quot;: 10
          }
      ]
  }
  response = requests.post(url, data=json.dumps(payload))
  print(response.text)
  data = response.text
  parsed = json.loads(data)
  price = parsed['result']
  price = price['account_objects']
  for Balance in price:
      print(Balance)
  </code></pre>
  <p>You will receive all the tokens the account holds and the value. I can not figure out how to parse this correctly and receive the correct one. This particular test account has a lot of tokens so I will only show the first tokens info.</p>
  <p><strong>RESULT</strong></p>
  <p>{'Balance': {'currency': 'ASP', 'issuer': 'rrrrrrrrrrrrrrrrrrrrBZbvji', 'value': '0'}, 'Flags': 65536, 'HighLimit': {'currency': 'ASP', 'issuer': 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59', 'value': '0'}, 'HighNode': '0', 'LedgerEntryType': 'RippleState', 'LowLimit': {'currency': 'ASP', 'issuer': 'r3vi7mWxru9rJCxETCyA1CHvzL96eZWx5z', 'value': '10'}, 'LowNode': '0', 'PreviousTxnID': 'BF7555B0F018E3C5E2A3FF9437A1A5092F32903BE246202F988181B9CED0D862', 'PreviousTxnLgrSeq': 1438879, 'index': '2243B0B630EA6F7330B654EFA53E27A7609D9484E535AB11B7F946DF3D247CE9'}</p>
  <p>I want to get the first bit of info, here. <code>{'Balance': {'currency': 'ASP', 'issuer': 'rrrrrrrrrrrrrrrrrrrrBZbvji', 'value': '0'}</code>,
  Specifically 'value' and the number</p>
  <p>I have tried to take parse 'Balance' but since it is a list it is not as straight forward.</p>