def _load_json_bool(b: Any):
    """Converts a json field to bool.  If already a bool, pass through."""
    if isinstance(b, bool):
        return b
    return json.loads(b)
Converts a json field to bool.  If already a bool, pass through.
cirq-google/cirq_google/api/v1/programs.py