W
W
wz2021-10-05 23:47:02
Python
wz, 2021-10-05 23:47:02

How to get nested JSON object in aiohttp?

I have an API which has a nested object

{
    "test": "object"
    "test": "object"
    "test": "object"
    "test": {
         "key" : "object"
    }
}


how to get the key using aiohttp
(if there are errors in the names or terms, sorry)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-10-05
@rensly

After parsing the JSON, the object will turn into a combination of python lists and dictionaries.
How to get a value in a dictionary by a known key?
And yes, your example is a curve. There must not be identical keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question