PostgreSQL Source Code  git master
json.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * json.h
4  * Declarations for JSON data type support.
5  *
6  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/utils/json.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 
14 #ifndef JSON_H
15 #define JSON_H
16 
17 #include "lib/stringinfo.h"
18 
19 /* functions in json.c */
20 extern void escape_json(StringInfo buf, const char *str);
21 extern char *JsonEncodeDateTime(char *buf, Datum value, Oid typid,
22  const int *tzp);
23 
24 #endif /* JSON_H */
char * JsonEncodeDateTime(char *buf, Datum value, Oid typid, const int *tzp)
Definition: json.c:353
unsigned int Oid
Definition: postgres_ext.h:31
static char * buf
Definition: pg_test_fsync.c:67
uintptr_t Datum
Definition: postgres.h:367
static struct @143 value
void escape_json(StringInfo buf, const char *str)
Definition: json.c:1279