I have several tables whose records have a type identifier. For example a table AUTOS has a MANUFACTURER field. I\'d like to be able to create an json_object for each row and ad