2
0

json.h 661 B

123456789101112131415161718192021222324
  1. /*-------------------------------------------------------------------------
  2. *
  3. * json.h
  4. * Declarations for JSON data type support.
  5. *
  6. * Portions Copyright (c) 1996-2022, 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. #ifndef JSON_H
  14. #define JSON_H
  15. #include "lib/stringinfo.h"
  16. /* functions in json.c */
  17. extern void escape_json(StringInfo buf, const char *str);
  18. extern char *JsonEncodeDateTime(char *buf, Datum value, Oid typid,
  19. const int *tzp);
  20. #endif /* JSON_H */