projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSON / MARC encoding
[yaz-moved-to-github.git]
/
include
/
yaz
/
json.h
diff --git
a/include/yaz/json.h
b/include/yaz/json.h
index
aab0159
..
d3974ae
100644
(file)
--- a/
include/yaz/json.h
+++ b/
include/yaz/json.h
@@
-201,6
+201,14
@@
void json_write_wrbuf_pretty(struct json_node *node, WRBUF result);
YAZ_EXPORT
void wrbuf_json_puts(WRBUF b, const char *str);
YAZ_EXPORT
void wrbuf_json_puts(WRBUF b, const char *str);
+/** \brief writes JSON text to WRBUF with escaping
+ \param b result
+ \param cp char buffer
+ \param sz size of char buffer
+*/
+YAZ_EXPORT
+void wrbuf_json_write(WRBUF b, const char *cp, size_t sz);
+
YAZ_END_CDECL
#endif
YAZ_END_CDECL
#endif