Your example works fine if you insert it directly into the Robomongo 0.8.4 shell tooltip, for example, in the game collection:
db.game.insert({ serial: '1231323123', game: 'World of Warcraft', date: Date.now() })
If you use the context menu ( Insert Document... ), the JSON parser will return a syntax error that you encounter.
The problem here is that JSON checking is currently being done using a library that is not MongoDB specific. The above is not valid JSON for several reasons (unspecified keys and value without quotes), but it is valid for insertion into the mongo shell.
I created Robomongo issue # 619 for this. The related JSON check difference is issue number 448 .
Until the JSON validation error is fixed, I would suggest inserting documents like this on the command line in Robomongo.
Stennie
source share