forked from mongodb/mongo-python-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.json
More file actions
43 lines (43 loc) · 1.59 KB
/
array.json
File metadata and controls
43 lines (43 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"description": "Array",
"bson_type": "0x04",
"test_key": "a",
"valid": [
{
"description": "Empty",
"canonical_bson": "0D000000046100050000000000",
"canonical_extjson": "{\"a\" : []}"
},
{
"description": "Single Element Array",
"canonical_bson": "140000000461000C0000001030000A0000000000",
"canonical_extjson": "{\"a\" : [{\"$numberInt\": \"10\"}]}"
},
{
"description": "Single Element Array with index set incorrectly",
"degenerate_bson": "130000000461000B00000010000A0000000000",
"canonical_bson": "140000000461000C0000001030000A0000000000",
"canonical_extjson": "{\"a\" : [{\"$numberInt\": \"10\"}]}"
},
{
"description": "Single Element Array with index set incorrectly",
"degenerate_bson": "150000000461000D000000106162000A0000000000",
"canonical_bson": "140000000461000C0000001030000A0000000000",
"canonical_extjson": "{\"a\" : [{\"$numberInt\": \"10\"}]}"
}
],
"decodeErrors": [
{
"description": "Array length too long: eats outer terminator",
"bson": "140000000461000D0000001030000A0000000000"
},
{
"description": "Array length too short: leaks terminator",
"bson": "140000000461000B0000001030000A0000000000"
},
{
"description": "Invalid Array: bad string length in field",
"bson": "1A00000004666F6F00100000000230000500000062617A000000"
}
]
}