+/** \brief parses JSON string
+ \param json_str JSON string
+ \param errmsg pointer to error message string
+ \param pos position of parser stop (probably error)
+ \returns JSON tree or NULL if parse error occurred.
+
+ The resulting tree should be removed with a call to json_remove_node.
+ The errmsg may be NULL in which case the error message is not returned.
+*/
+YAZ_EXPORT
+struct json_node *json_parse2(const char *json_str, const char **errmsg,
+ size_t *pos);
+