Postgresql Get Nested Json Value Types In Python The