Is there a way to run MongoDB shell (or particular tojson method) in strict JSON mode?
Why I need this - To be able take the output of shell (generated by some js commands followed by a tojson) and convert it to JSON objects in Java.
Alternatively,
Is there any way to parse the extended JSON from shell into java Json objects? (com.mongodb.util.JSON.parse expects strict JSON)