Commit 9376cc81 by Jan Margeta

Fix of ReferenceError: JSON is not defined

parent 4d7fa423
......@@ -52,7 +52,7 @@ if (db[collection].count() == 0) {
}
if (typeof query === "undefined") { var query = {}; }
print("Using query of " + JSON.stringify(query));
print("Using query of " + tojson(query));
if (typeof limit === "undefined") { var limit = db[collection].find(query).count(); }
print("Using limit of " + limit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment