from typing import Any


def to_json_value(v: Any) -> Any:
    """To JSON value.

    Args:
        v (Any): Any value.

    Returns:
        Any: JSON like value.
    """
    if isinstance(v, dict):
        res = {}
        for k, val in v.items():
            if not any(isinstance(k, t) for t in [str, int]):
                k = str(k)
            res[k] = to_json_value(val)
        return res
    if any(isinstance(v, t) for t in [str, int, float, bool]):
        return v
    elif any(isinstance(v, t) for t in [list, tuple, set]):
        return [to_json_value(val) for val in v]
    elif v is None:
        return v
    else:
        return str(v)