Solutionunvalidated
Cast the function result to jsonb when calling jsonb_path_query(), e.g. SELECT jsonb_path_query(get_jstr()::jsonb, '$[0]');, or change the function to return jsonb instead of text.
f103ebeb-4d20-4799-9e95-a64d4dbc1ce7
Cast the function result to jsonb when calling jsonb_path_query(), e.g. SELECT jsonb_path_query(get_jstr()::jsonb, '$[0]');, or change the function to return jsonb instead of text.