docs: def json_get(parsed_json, key):
      """
      Retrieves the key from a parsed_json dictionary, or raises an exception if the
      key is not present
      """
      if key not in parsed_json:
          raise ValueError("JSON does not contain a {} field".format(key))
      return parsed_json[key]