It would be cool to have jspath function (jsonb, text)->jsonb[], which work like simplified xpath
jspath('{"a": {"b" :[{"c": any},{"c", any2}]}}', ' "a"."b".#."c" ')) => {any, any2}