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
  
44
  
{ 
    "description": "Int32 type", 
    "bson_type": "0x10", 
    "test_key": "i", 
    "valid": [ 
        { 
            "description": "MinValue", 
            "canonical_bson": "0C0000001069000000008000", 
            "canonical_extjson": "{\"i\" : {\"$numberInt\": \"-2147483648\"}}", 
            "relaxed_extjson": "{\"i\" : -2147483648}" 
        }, 
        { 
            "description": "MaxValue", 
            "canonical_bson": "0C000000106900FFFFFF7F00", 
            "canonical_extjson": "{\"i\" : {\"$numberInt\": \"2147483647\"}}", 
            "relaxed_extjson": "{\"i\" : 2147483647}" 
        }, 
        { 
            "description": "-1", 
            "canonical_bson": "0C000000106900FFFFFFFF00", 
            "canonical_extjson": "{\"i\" : {\"$numberInt\": \"-1\"}}", 
            "relaxed_extjson": "{\"i\" : -1}" 
        }, 
        { 
            "description": "0", 
            "canonical_bson": "0C0000001069000000000000", 
            "canonical_extjson": "{\"i\" : {\"$numberInt\": \"0\"}}", 
            "relaxed_extjson": "{\"i\" : 0}" 
        }, 
        { 
            "description": "1", 
            "canonical_bson": "0C0000001069000100000000", 
            "canonical_extjson": "{\"i\" : {\"$numberInt\": \"1\"}}", 
            "relaxed_extjson": "{\"i\" : 1}" 
        } 
    ], 
    "decodeErrors": [ 
        { 
            "description": "Bad int32 field length", 
            "bson": "090000001061000500" 
        } 
    ] 
}