Как вывести нужную переменную из JSON?
Как-то так...import json
myjson = """
{
  "accounts": [
    {
      "alias": "string",
      "balance": {
        "amount": 0,
        "currency": 0
      },
      "bankAlias": "string",
      "currency": 0,
      "defaultAccount": true,
      "fsAlias": "string",
      "hasBalance": true,
      "title": "string",
      "type": {
        "id": "string",
        "title": "string"
      }
    }
  ]
}
"""
data = json.loads(myjson)
print data["accounts"][0]["balance"]["amount"]
Ну и на почитать - https://realpython.com/python-json/
Как-то так...import json
myjson = """
{
  "accounts": [
    {
      "alias": "string",
      "balance": {
        "amount": 0,
        "currency": 0
      },
      "bankAlias": "string",
      "currency": 0,
      "defaultAccount": true,
      "fsAlias": "string",
      "hasBalance": true,
      "title": "string",
      "type": {
        "id": "string",
        "title": "string"
      }
    }
  ]
}
"""
data = json.loads(myjson)
print data["accounts"][0]["balance"]["amount"]
Ну и на почитать - https://realpython.com/python-json/