Commit 1048f4f7 authored by A. Jesse Jiryu Davis's avatar A. Jesse Jiryu Davis
Browse files

CDRIVER-1335 bson_as_json for "code" types

bson_append_code_with_scope now preserves the "code with scope" type
if scope is an empty, non-NULL BSON document.

bson_as_json now properly formats BSON "code" and "code with scope"
types like '{"$code": "...", "$scope": {}}'. Before, it had treated the
code as a string and ignored the scope.
parent 471a86b8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment