diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 41b5c1bd1a3..c9b1c5fd00b 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -12163,7 +12163,7 @@ NULL baz(3 rows)
json_agg(expression)
- expression
+ any
json
@@ -12179,7 +12179,7 @@ NULL baz(3 rows)
json_object_agg(name, value)
- ("any", "any")
+ (any, any)
json