From 39909d1d39ae57c3a655fc7010e394e26b90fec9 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 3 Feb 2012 12:11:16 -0500 Subject: 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. --- src/include/utils/json.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/include/utils/json.h') diff --git a/src/include/utils/json.h b/src/include/utils/json.h index ee87fd61d7..415787b458 100644 --- a/src/include/utils/json.h +++ b/src/include/utils/json.h @@ -20,5 +20,10 @@ extern Datum json_in(PG_FUNCTION_ARGS); extern Datum json_out(PG_FUNCTION_ARGS); extern Datum json_recv(PG_FUNCTION_ARGS); extern Datum json_send(PG_FUNCTION_ARGS); +extern Datum array_to_json(PG_FUNCTION_ARGS); +extern Datum array_to_json_pretty(PG_FUNCTION_ARGS); +extern Datum row_to_json(PG_FUNCTION_ARGS); +extern Datum row_to_json_pretty(PG_FUNCTION_ARGS); +extern void escape_json(StringInfo buf, const char *str); #endif /* XML_H */ -- cgit v1.2.1