Add array_to_json and row_to_json functions.
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 3 Feb 2012 17:11:16 +0000 (12:11 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 3 Feb 2012 17:11:16 +0000 (12:11 -0500)
commit39909d1d39ae57c3a655fc7010e394e26b90fec9
tree7eff6f5605be63418574a53b085ed1fd420cd223
parent69e9768e7b183d4b276d0e067a5a0000689580eb
Add array_to_json and row_to_json functions.

Also move the escape_json function from explain.c to json.c where it
seems to belong.

Andrew Dunstan, Reviewd by Abhijit Menon-Sen.
doc/src/sgml/func.sgml
src/backend/commands/explain.c
src/backend/utils/adt/json.c
src/include/catalog/pg_proc.h
src/include/utils/json.h
src/test/regress/expected/json.out
src/test/regress/sql/json.sql