-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In favor of SPM-3895, we are trying to prevent the use of tojson() for logging, as it does not produce valid JSON serialization.
printjsononeline(obj) has only 9 occurrences in 6 JavaScript tests in master branch and can be completely replaced with jsTest.log.info({obj}) or (less preferably) with print(tojsononeline(obj)).