Make ObjectId json serializable

This is good for frameworks that automatically takes the __json__ function of a class to serialize an object.