marcello3d/node-buffalo — pull request #6 by rashfael (2012-05-03 13:41:49+00:00)
Title: return correct string representation for JSON.stringify

When using JSON.stringify on an ObjectId (or data containing ObjectIds), the ObjectId is serialized to a huge Buffer array. Implementing toJSON() fixes this.