SYNOPSIS
#include <bson.h> char * bson_utf8_escape_for_json (const char *utf8, ssize_t utf8_len);
DESCRIPTION
The bson_utf8_escape_for_json() function shall escape the contents of utf8 for use within JSON. The result is a newly allocated string that should be freed with bson_free().
This function escapes " and "\" characters.
utf8 MUST be valid UTF-8.
RETURN VALUE
A newly allocated string that should be freed with bson_free().
ERRORS
No errors are defined.
AUTHORS
This page was written by MongoDB, Inc.