def _is_serializable(data):
try:<EOL><INDENT>json.dumps(data)<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Check, if data is json serializable.