def ParseJSONFile(filename):
  with open(filename) as json_file:
    try:
      return json.load(json_file)
    except ValueError:
      print "%s is not a valid JSON document" % filename
      return None