Postgresql Get Array From Json To Object Typescript Playground