If you're talking between services in JSON (like to a browser, or producing/consuming mongoexport), you should strictly adhere to this JSON Schema.
This provides an easy way to verify your documents are valid.
It also serves as documentation for what the MongoDB Extended JSON format looks like.
This is the schema for a document, e.g. something you can store in MongoDB.
**TODO** implement this schema
This is the schema for a query document. This allows for additional field values, e.g.