...

Text file src/go.mongodb.org/mongo-driver/testdata/bson-corpus/boolean.json

Documentation: go.mongodb.org/mongo-driver/testdata/bson-corpus

     1{
     2    "description": "Boolean",
     3    "bson_type": "0x08",
     4    "test_key": "b",
     5    "valid": [
     6        {
     7            "description": "True",
     8            "canonical_bson": "090000000862000100",
     9            "canonical_extjson": "{\"b\" : true}"
    10        },
    11        {
    12            "description": "False",
    13            "canonical_bson": "090000000862000000",
    14            "canonical_extjson": "{\"b\" : false}"
    15        }
    16    ],
    17    "decodeErrors": [
    18        {
    19            "description": "Invalid boolean value of 2",
    20            "bson": "090000000862000200"
    21        },
    22        {
    23            "description": "Invalid boolean value of -1",
    24            "bson": "09000000086200FF00"
    25        }
    26    ]
    27}

View as plain text