JSON / MARC encoding
[yaz-moved-to-github.git] / include / yaz / json.h
index aab0159..d3974ae 100644 (file)
@@ -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);
 
+/** \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