X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fmarcdisp.h;h=0d029c515d8866a2915106d618686e28197f65fc;hp=0b2b66b1fd748bf638698375f74a966729335da8;hb=b8fbcf6d00bc77c4ccdb02d68c9316f3263be15a;hpb=574ae68dc570706b4468b29e82681efe15bc7180 diff --git a/include/yaz/marcdisp.h b/include/yaz/marcdisp.h index 0b2b66b..0d029c5 100644 --- a/include/yaz/marcdisp.h +++ b/include/yaz/marcdisp.h @@ -262,6 +262,15 @@ int yaz_marc_write_xml(yaz_marc_t mt, xmlNode **root_ptr, const char *type); #endif +/** \brief writes MARC record in JSON represenation + \param mt handle + \param w WRBUF for output + \retval 0 Creation successful + \retval -1 ERROR +*/ +YAZ_EXPORT +int yaz_marc_write_json(yaz_marc_t mt, WRBUF w); + /** \brief sets leader spec (for modifying bytes in 24 byte leader) \param mt handle \param leader_spec