def json_absent_or_false(json, key):
  """Checks if the key does not appear or maps to false in the JSON object.

  Our measure of false here is the same as Python.
  """
  return key not in json or not json[key]