This is what I am trying to do, with no luck:
CREATE FUNCTION get_value_from_json (key string, json string) AS ( ( EXECUTE IMMEDIATE format( ""&qu