Commit 52c71840 by Wes Freeman

Merge pull request #28 from jmargeta/json_fix

Fix of ReferenceError: JSON is not defined
parents 4d7fa423 9376cc81
......@@ -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