def METHOD_NAME(key, known_integers=None, known_dates=None, known_decimals=None):
    if known_integers is None:
        known_integers = []
    if known_dates is None:
        known_dates = []
    if known_decimals is None:
        known_decimals = []
    _json_str = "json->>%s"
    if key in known_integers:
        _json_str = "CAST(json->>%s AS INT)"
    elif key in known_dates:
        _json_str = "CAST(json->>%s AS TIMESTAMP)"
    elif key in known_decimals:
        _json_str = "CAST(json->>%s AS DECIMAL)"
    return _json_str