How to parse json and display all the elements?

There is a json file.
{
 "users": {
 "items": [
{
 "displayName": "Alex",
 "active": true,
 "timeZone": "Europe"
 }, 
{
 "displayName": "Andrew",
 "active": true,
 "timeZone": "Europe"
 }, 
{
 "displayName": "Andriy",
 "active": true,
 "timeZone": "US",
 }, 
{
 "displayName": "Nick",
 "active": true,
 "timeZone": "Europe"
 }, 
{
 "displayName": "Serhii",
 "active": true,
 "timeZone": "US",
}],
 "max-results": 50,
 "start-index": 0,
 "end-index": 4
},
 "expand": "users"
 }


I want to get the displayName for example and display, but can display only one at a time by a particular index. Is it possible to pull from all of displayName?

python code
import json
data = json.load(open('test.json'))
print (data["users"]["items"][write here the index]["displayName"])
June 10th 19 at 16:07
1 answer
June 10th 19 at 16:09
Solution
print([x['displayName'] for x in data['users']['items']])

Find more questions by tags JSONPython