JSON Formatter for MongoDB Documents
Quick Answer: Paste MongoDB shell output or Compass export JSON to get readable, indented documents. The formatter handles standard JSON from MongoDB exports and driver output.
FAQ
Does this handle MongoDB extended JSON?
It formats standard JSON output. Extended JSON fields like {"$oid": "..."} and {"$date": "..."} are formatted as regular nested objects.
Can I format the output of db.collection.find()?
Copy the JSON output from mongosh or Compass and paste it. If the output is multiple documents, wrap them in an array.