⬅︎ Back to bool is instance of int in Python
result.append(dict(name=key, type=type(value), value=value))if isinstance(value, bool): result[-1]['value'] = ("false", "true")[value]
Comment
result.append(dict(name=key, type=type(value), value=value))
if isinstance(value, bool):
result[-1]['value'] = ("false", "true")[value]