Mongo collection to json util