LearnBoost/mongoose — Issue #632: calling toJSON returns invalid JSON
Author: codebrew
Created: 2011-11-30 18:42:56+00:00
State: open

When calling doc.toJSON() the "_id" property is an instance of ObjectID, which is obviously not valid json.

I've tested this in versions 2.3 and 2.4.0 of mongoose.