Wednesday, 17 May 2017

Convert Bson to Json object

Crome developer tool show this

console.log('DATA*** ', data[0]._id);

DATA*** Object {_bsontype: "ObjectID", id: "YIä↵P¨H0"}

How I can convert it into normal JSON object?



via Roman Pawliw

No comments:

Post a Comment