]> granicus.if.org Git - postgresql/commit
New json functions.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 28 Jan 2014 22:48:21 +0000 (17:48 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 28 Jan 2014 22:48:21 +0000 (17:48 -0500)
commit105639900bf83fd3e3eb5b49f49b4d74d6347b9b
tree8bd01cee2f01995284b709d1800c6144045675f8
parent9132b189bf5589591cb63fef7952842b772e4fe6
New json functions.

json_build_array() and json_build_object allow for the construction of
arbitrarily complex json trees. json_object() turns a one or two
dimensional array, or two separate arrays, into a json_object of
name/value pairs, similarly to the hstore() function.
json_object_agg() aggregates its two arguments into a single json object
as name value pairs.

Catalog version bumped.

Andrew Dunstan, reviewed by Marko Tiikkaja.
doc/src/sgml/func.sgml
src/backend/utils/adt/json.c
src/backend/utils/adt/jsonfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_proc.h
src/include/utils/json.h
src/test/regress/expected/json.out
src/test/regress/expected/json_1.out
src/test/regress/sql/json.sql