Create Json Array Postgresql W3schools Js