Python Create Json Object And String To Array Postgresql W3schools