json2mongo

JSON →
library 2.0.0 ·javascript
verified Jun 5, 2026

Converts MongoDB Extended JSON Strict Mode syntax to JavaScript Mode, allowing use of Date, RegExp, and undefined in MongoDB query objects directly. Version 2.0.0 is the latest stable release, updated infrequently. Unlike manual parsing, it handles nested objects and all extended JSON types ($date, $regex, $undefined) automatically, converting to native JavaScript Date, RegExp, and undefined values.