@staticmethod
def _parse_candidate(candidate):
    """Parse filter candidates so that you can use None, True, False."""
    val = candidate
    if candidate is None:
        val = 'null'
    elif candidate is True:
        val = '1'
    elif candidate is False:
        val = '0'
    return val
