Source

pgdevel / src / include / utils / json.h

Full commit
Robert Haas 5384a73 
















Peter Eisentraut 8570114 
Robert Haas 5384a73 
Andrew Dunstan 4f98159 
Robert Haas 5384a73 



Andrew Dunstan 39909d1 



Bruce Momjian 927d61e 
Robert Haas 5384a73 
Andrew Dunstan 4f98159 





Andrew Dunstan 0e59621 
Andrew Dunstan 970981d 

Andrew Dunstan 4f98159 
Alvaro Herrera 58e9f97 
/*-------------------------------------------------------------------------
 *
 * json.h
 *	  Declarations for JSON data type support.
 *
 * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/include/utils/json.h
 *
 *-------------------------------------------------------------------------
 */

#ifndef JSON_H
#define JSON_H

#include "fmgr.h"
#include "lib/stringinfo.h"

/* functions in json.c */
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);

/* functions in jsonfuncs.c */
extern Datum json_get_aelem_as_text(PG_FUNCTION_ARGS);
extern Datum json_get_aelem(PG_FUNCTION_ARGS);
extern Datum json_get_ofield_as_text(PG_FUNCTION_ARGS);
extern Datum json_get_ofield(PG_FUNCTION_ARGS);
extern Datum json_object_keys(PG_FUNCTION_ARGS);
extern Datum json_array_length(PG_FUNCTION_ARGS);
extern Datum json_each(PG_FUNCTION_ARGS);
extern Datum json_get_path(PG_FUNCTION_ARGS);

#endif   /* JSON_H */