Postgresql Plpgsql Loop Through Json In Typescript Playground