def _is_wellformed_json(x):
    'Return 1 if *x* is well-formed JSON or return 0 if *x* is not\n    well-formed. This function should be registered with SQLite (via\n    the create_function() method) when the JSON1 extension is not\n    available.\n\n    This function mimics the JSON1 json_valid() function, see:\n        https://www.sqlite.org/json1.html#jvalid\n    '
    try:
        _loads(x)
    except (ValueError, TypeError):
        return 0
    return 1
Return 1 if *x* is well-formed JSON or return 0 if *x* is not
well-formed. This function should be registered with SQLite (via
the create_function() method) when the JSON1 extension is not
available.

This function mimics the JSON1 json_valid() function, see:
    https://www.sqlite.org/json1.html#jvalid
def _is_wellformed_json(x):
    'Return 1 if *x* is well-formed JSON or return 0 if *x* is not\n    well-formed. This function should be registered with SQLite (via\n    the create_function() method) when the JSON1 extension is not\n    available.\n\n    This function mimics the JSON1 json_valid() function, see:\n        https://www.sqlite.org/json1.html#jvalid\n    '
    try:
        _loads(x)
    except (ValueError, TypeError):
        return 0
    return 1