The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
{
    "description": "DateTime",
    "bson_type": "0x09",
    "test_key": "a",
    "valid": [
        {
            "description": "epoch",
            "bson": "10000000096100000000000000000000",
            "extjson": "{\"a\" : {\"$date\" : \"1970-01-01T00:00:00.000Z\"}}",
            "canonical_extjson": "{\"a\" : {\"$date\" : {\"$numberLong\" : \"0\"}}}"
        },
        {
            "description": "positive ms",
            "bson": "10000000096100C4D8D6CC3B01000000",
            "extjson": "{\"a\" : {\"$date\" : \"2012-12-24T12:15:30.500Z\"}}",
            "canonical_extjson": "{\"a\" : {\"$date\" : {\"$numberLong\" : \"1356351330500\"}}}"
        },
        {
            "description": "negative",
            "bson": "10000000096100C43CE7B9BDFFFFFF00",
            "extjson": "{\"a\" : {\"$date\" : \"1960-12-24T12:15:30.500Z\"}}",
            "canonical_extjson": "{\"a\" : {\"$date\" : {\"$numberLong\" : \"-284643869500\"}}}"
        }
    ],
    "decodeErrors": [
        {
            "description": "datetime field truncated",
            "bson": "0C0000000961001234567800"
        }
    ]
}