I've started switching from document-databases to using Postgresql jsonb.
I noticed there's no automatic typemap for jsonb-columns. I do set the type_map_for_results:
@pg = PG.connect( ... ) @pg.type_map_for_results = PG::BasicTypeMapForResults.new @pg
Which works fine for array-columns and others but not json. While looking through the code it seems like it's there but commented out.
Wouldn't something like the following make sense as default?
JSON.parse( json/jsonb data from pg) # => Hash
Thanks for a great lib! Feels like postgres is having alot of momentum now.