i found a bug. To reproduce it you can execute the code (see attachment file).
The bug is simple:
After an invalid conversion, the automatic String -> JSON transformation used to put a document into MongoDB collection, fail!
- First document can be convert to JSON, Mongodb create a document (correct)
- Second document has an error, Mongodb cannot create a document (correct)
- Third document can be convert to JSON but Mongodb cannot create a document into collection because automatic conversion is broken!!! (BUG)