I need to get an object from the json array, how to do it?
Closed due to the fact that the essence of the question is incomprehensible by the participants insolor , jfs , aleksandr barakin , Ivan Pshenitsyn , user194374 August 20 '16 at 12:28 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
|
1 answer
Well, here's a trivial example. Suppose there is some variable j
containing {'a': 1, 'b': 2, 'c': {'aa': 'z1', 'bb': 'z2'}}
, we get the values:
>>> print j["a"] 1 >>> print j["c"] {'aa': 'z1', 'bb': 'z2'} >>> print j["c"]["aa"] z1
If you need more, you need to see the structure of your json-list.
|