How to loop over a nested json structure in Python?

I am having trouble getting key values in a JSON. import json packages = [ [ { “name”: “a2ps”, “installs”: 61423 }, { “name”: “aravis”, “installs”: 61424 }, { “name”: “arangodb”, “installs”: 61425 } ], [ { “name”: “argon2”, “installs”: 61420 }, { “name”: “archivemount”, “installs”: 61421 }, { “name”: “archivemail”, “installs”: 61422 } ]…

How to solve “$ operator is invalid for atomic vectors” when trying to extract a list from json file?

I am not very experienced in R. I have a data in son format on a series of tweets. When I print them they look like this: print(result) $in_reply_to_status_id [1] 1.002615e+18 $possibly_sensitive [1] FALSE $created_at [1] “Thu Jun 20 10:54:04 CEST 2019” $truncated [1] TRUE $source [1] “http://twitter.com\” rel=\”nofollow\”>Twitter Web Client” $retweet_count [1] “0” etc…