def json_dumps(obj: Any, **kwargs) -> str:
    """Takes an object and returns a jsonified string.

    Args:
        obj: The object to be serialized.
        kwargs: Additional keyword arguments to pass to json.dumps.

    Returns:
        A string
    """
    from reflex.utils import serializers

    kwargs.setdefault("ensure_ascii", False)
    kwargs.setdefault("default", serializers.serialize)

    return json.dumps(obj, **kwargs)
Takes an object and returns a jsonified string.

    Args:
        obj: The object to be serialized.
        kwargs: Additional keyword arguments to pass to json.dumps.

    Returns:
        A string
    
reflex/utils/format.py