diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
new file mode 100644
index 6e2fbda..8a1a2e3
*** a/doc/src/sgml/func.sgml
--- b/doc/src/sgml/func.sgml
*************** table2-mapping
*** 10093,10098 ****
--- 10093,10099 ----
Right Operand Type
Description
Example
+ Example Result
*************** table2-mapping
*** 10100,10136 ****
->
int
Get JSON array element
! '[1,2,3]'::json->2
->
text
Get JSON object field
! '{"a":1,"b":2}'::json->'b'
->>
int
Get JSON array element as text
'[1,2,3]'::json->>2
->>
text
Get JSON object field as text
'{"a":1,"b":2}'::json->>'b'
#>
text[]
! Get JSON object at specified path
! '{"a":[1,2,3],"b":[4,5,6]}'::json#>'{a,2}'
#>>
text[]
Get JSON object at specified path as text
'{"a":[1,2,3],"b":[4,5,6]}'::json#>>'{a,2}'
--- 10101,10143 ----
->
int
Get JSON array element
! '[{"a":"foo"},{"a":"bar"},{"a":"baz"}]'::json->2
! {"a":"baz"}
->
text
Get JSON object field
! '{"a": {"b":"foo"}}'::json->'a'
! {"b":"foo"}
->>
int
Get JSON array element as text
'[1,2,3]'::json->>2
+ 3
->>
text
Get JSON object field as text
'{"a":1,"b":2}'::json->>'b'
+ 2
#>
text[]
! Get JSON object at specified path
! '{"a": {"b":{"c": "foo"}}}'::json#>'{a,b}'
! {"c": "foo"}
#>>
text[]
Get JSON object at specified path as text
'{"a":[1,2,3],"b":[4,5,6]}'::json#>>'{a,2}'
+ 3