X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fjson.h;h=d3974aedcb6842850d85a45d4d5c323428ee0118;hb=bbfac2e92dee794029b7a2ee6c843c9b99e22cc3;hp=aab0159726a15b1999be28e5fcdbf838d3a99f32;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e;p=yaz-moved-to-github.git diff --git a/include/yaz/json.h b/include/yaz/json.h index aab0159..d3974ae 100644 --- 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); +/** \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