* JSON::PP::Boolean so it is listed at the end for compatibility
* with old versions of it. Old versions of Cpanel::JSON::XS
* similarly have their own type, but now use JSON::PP::
strEQ(obj_type, "JSON::XS::Boolean") ||
strEQ(obj_type, "JSON::PP::Boolean") ||
strEQ(obj_type, "JSON::Tiny::_Bool") ||
strEQ(obj_type, "Mojo::JSON::_Bool") ||
strEQ(obj_type, "Cpanel::JSON::XS::Boolean") ||
strEQ(obj_type, "Types::Serialiser::Boolean")
) {
bson_append_bool(bson, key, -1, SvIV(SvRV(sv)));
}
else if (s
void);
bson_t *
bson_new_from_json (const uint8_t *data,
ssize_t len,
bson_error_t *error);
bool
bson_init_from_json (bson_t *bson,
valid_type);
/**
* bson_as_json:
* @bson: A bson_t.
* @length: A location for the string length, or NULL.
*
* Creates a new string containing @bson in extended JSON format. The caller
* is res
ference/mongodb-extended-json/ for
* more information on extended JSON.
*
* Returns: A newly allocated string that should be freed with bson_free().
*/
char *
bson_as_json (const bson_t *bson,
ompat.h"
#include "bson-macros.h"
#include "bson-types.h"
BSON_BEGIN_DECLS
#define BSON_ERROR_JSON 1
#define BSON_ERROR_READER 2
void bson_set_error (bson_error_t *error,
bool allow_null);
char *bson_utf8_escape_for_json (const char *utf8,
ssize_t utf8_len);
bson