driver-legacy/src/main/com/mongodb/util/JSONSerializers.java
public static ObjectSerializer getStrict() {

        ClassMapBasedObjectSerializer serializer = addCommonSerializers();

        serializer.addObjectSerializer(Date.class, new DateSerializer(serializer));
        serializer.addObjectSerializer(BSONTimestamp.class, new BSONTimestampSerializer(serializer));
        serializer.addObjectSerializer(Binary.class, new BinarySerializer(serializer));
        serializer.addObjectSerializer(byte[].class, new ByteArraySerializer(serializer));

        return serializer;
    }
public static ObjectSerializer getStrict() {

        ClassMapBasedObjectSerializer serializer = addCommonSerializers();

        serializer.addObjectSerializer(Date.class, new DateSerializer(serializer));
        serializer.addObjectSerializer(BSONTimestamp.class, new BSONTimestampSerializer(serializer));
        serializer.addObjectSerializer(Binary.class, new BinarySerializer(serializer));
        serializer.addObjectSerializer(byte[].class, new ByteArraySerializer(serializer));

        return serializer;
    }
public static ObjectSerializer getStrict ( ) { ClassMapBasedObjectSerializer serializer = addCommonSerializers ( ) ; serializer . addObjectSerializer ( Date . class , new DateSerializer ( serializer ) ) ; serializer . addObjectSerializer ( BSONTimestamp . class , new BSONTimestampSerializer ( serializer ) ) ; serializer . addObjectSerializer ( Binary . class , new BinarySerializer ( serializer ) ) ; serializer . addObjectSerializer ( byte [ ] . class , new ByteArraySerializer ( serializer ) ) ; return serializer ; }
Returns an {@code ObjectSerializer} that conforms to the strict JSON format defined in
<a href="http://docs.mongodb.org/manual/reference/mongodb-extended-json/">extended JSON</a>.

@return object serializer
@mongodb.driver.manual reference/mongodb-extended-json/ MongoDB Extended JSON
Returns an { @code ObjectSerializer } that conforms to the strict JSON format defined in <a href = http : // docs . mongodb . org / manual / reference / mongodb - extended - json / > extended JSON< / a > .