def METHOD_NAME(value: Union[str, int, float]) -> ExpressionJson:
    if isinstance(value, str):
        return {
            "type": "string-literal",
            "value": value,
        }
    return {
        "type": "numeric-literal",
        "value": to_number_json(value),
    }