How to loop through json file?

A very simple sample using python: #!/usr/bin/env python import sys import json def print_first(data): for item in data[“items”]: if item[“name”].startswith(“first”): print item[“hostRef”][“hostId”] def … Read more