MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

mongodb stampa json senza spazi bianchi, ovvero json poco carino

var cursor = db.collection.find().sort({_id:-1}).limit(10000);
while(cursor.hasNext()){
    printjsononeline(cursor.next());
}