def _make_serializable(value: Any) -> Any:
    """Convert a value to a JSON-serializable format.

    Args:
        value: Any value to convert

    Returns:
        JSON-serializable version of the value
    """
    try:
        json.dumps({"test": value})
        return value
    except (TypeError, OverflowError):
        return str(value)
Convert a value to a JSON-serializable format.

    Args:
        value: Any value to convert

    Returns:
        JSON-serializable version of the value
    
src/dashboard/trulens/dashboard/utils/dashboard_utils.py