Patches have been submitted for PostgreSQL 9.2 that introduce a native JSON type and support for returning JSON-formatted query results.