def _is_wellformed_attributes(x):
    'Returns 1 if *x* is a wellformed TEXT_ATTRIBUTES column\n    value else returns 0. TEXT_ATTRIBUTES should be flat, JSON\n    object strings. This function should be registered with SQLite\n    (via the create_function() method) when the JSON1 extension\n    is not available.\n    '
    try:
        obj = _loads(x)
    except (ValueError, TypeError):
        return 0
    if (not isinstance(obj, dict)):
        return 0
    for value in obj.values():
        if (not isinstance(value, str)):
            return 0
    return 1
Returns 1 if *x* is a wellformed TEXT_ATTRIBUTES column
value else returns 0. TEXT_ATTRIBUTES should be flat, JSON
object strings. This function should be registered with SQLite
(via the create_function() method) when the JSON1 extension
is not available.
def _is_wellformed_attributes(x):
    'Returns 1 if *x* is a wellformed TEXT_ATTRIBUTES column\n    value else returns 0. TEXT_ATTRIBUTES should be flat, JSON\n    object strings. This function should be registered with SQLite\n    (via the create_function() method) when the JSON1 extension\n    is not available.\n    '
    try:
        obj = _loads(x)
    except (ValueError, TypeError):
        return 0
    if (not isinstance(obj, dict)):
        return 0
    for value in obj.values():
        if (not isinstance(value, str)):
            return 0
    return 1