From 5264d9154178d3aeaa0359b43a450298a7ce7281 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Wed, 29 Jan 2014 15:39:01 -0500 Subject: Add json_array_elements_text function. This was a notable omission from the json functions added in 9.3 and there have been numerous complaints about its absence. Laurence Rowe. --- doc/src/sgml/func.sgml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index cd886ab71a7..9816163354d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10280,6 +10280,27 @@ table2-mapping 1 true [2,false] + + + + + + + json_array_elements_text + + json_array_elements_text(json) + + SETOF json + + Expands a JSON array to a set of text values. + + json_array_elements_text('["foo", "bar"]') + + + value +----------- + foo + bar -- cgit v1.2.3