from typing import Any


def is_number(obj: Any) -> bool:
    """
    Test if the JSON object is a JSON number

    Args:
        obj: object to test the type of

    Returns:
       `True` if ``obj`` is a json number, `False` otherwise
    """
    return type(obj) in (int, float)