I want to convert ObjectID (Mongodb) to String in JavaScript. When I get a Object form MongoDB. it like as a object has: timestamp, second, inc, machine. I can\'t convert to
Acturally, you can try this:
> a['_id'] ObjectId("518cbb1389da79d3a25453f9") > a['_id'] + '' "518cbb1389da79d3a25453f9"
ObjectId object + String will convert to String object.