At the entrance there is a dictionary:
{'response': [ {'uid': 1296468, 'first_name': 'Aleksandr', 'last_name': 'Kasatkin', 'last_seen': {'time': 1522334419, 'platform': 3}, 'online': 0, 'user_id': 1296468}, {'uid': 565862, 'first_name': 'Alexander', 'last_name': 'Osipenko', 'last_seen': {'time': 1522919428, 'platform': 4}, 'online': 0, 'user_id': 565862} ]} The output should be:
num = 2