mongo-python-driver/test/bson_corpus/boolean.json
Shane Harvey 054a01aaff PYTHON-1297 Implement Extended JSON Spec 2.0
Add JSONOptions.json_mode to control encoding Relaxed and Canonical
Extended JSON.
Add json_util.LEGACY_JSON_OPTIONS to encode PyMongo 3.4's default JSON output.
Deprecate json_util.STRICT_JSON_OPTIONS.
Move Decimal128 spec tests to bson_corpus runner.
2017-08-03 10:30:24 -07:00

28 lines
685 B
JSON

{
"description": "Boolean",
"bson_type": "0x08",
"test_key": "b",
"valid": [
{
"description": "True",
"canonical_bson": "090000000862000100",
"canonical_extjson": "{\"b\" : true}"
},
{
"description": "False",
"canonical_bson": "090000000862000000",
"canonical_extjson": "{\"b\" : false}"
}
],
"decodeErrors": [
{
"description": "Invalid boolean value of 2",
"bson": "090000000862000200"
},
{
"description": "Invalid boolean value of -1",
"bson": "09000000086200FF00"
}
]
}