Q:

How to specify values in JSON key

I have a JSON and I want to access the keys in "rates". This is the aforementioned JSON:
currency = '''
{
  "rates": {
    "CNY": 7.6588,
    "BGN": 1.9558,
    "USD": 1.114
  },
  "base": "EUR",
  "date": "2019-07-24"
}
'''

qwe = json.loads(currency)

When i try
for x in qwe['rates']:
    print(x)

I get the values CNY, BGN, USD without the keys.
But also when I try print(qwe['rates']) I get {'CNY': 7.6588, 'BGN': 1.9558, 'USD': 1.114}
My idea is to specify the keys for each value

A:

qwe = json.loads(currency)
for key, value in qwe['rates'].items():
    # do something with 'key' here

