summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Becker <ben.becker@10gen.com>2013-03-01 14:26:11 -0800
committerBen Becker <ben.becker@10gen.com>2013-03-01 14:26:19 -0800
commit18cc49471b44049f97bc047c3a3200c2011c4e54 (patch)
tree9d792e5935ca5dc1c87827471e780a85cdf4b4e3
parent28c49b3882ccca72971270fcebc438c593aa6ede (diff)
downloadmongo-18cc49471b44049f97bc047c3a3200c2011c4e54.tar.gz
SERVER-8823: make printjson() and printjsononeline() available to and MapReduce
-rw-r--r--src/mongo/shell/types.js8
-rw-r--r--src/mongo/shell/utils.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/shell/types.js b/src/mongo/shell/types.js
index 89fed57769a..681c7deadb0 100644
--- a/src/mongo/shell/types.js
+++ b/src/mongo/shell/types.js
@@ -616,6 +616,14 @@ tojsonObject = function(x, indent, nolint){
return s + indent + "}";
}
+printjson = function(x){
+ print( tojson( x ) );
+}
+
+printjsononeline = function(x){
+ print( tojsononeline( x ) );
+}
+
isString = function(x){
return typeof(x) == "string";
}
diff --git a/src/mongo/shell/utils.js b/src/mongo/shell/utils.js
index c00a7aaf6ff..5376d0ca430 100644
--- a/src/mongo/shell/utils.js
+++ b/src/mongo/shell/utils.js
@@ -340,14 +340,6 @@ shellPrint = function( x ){
}
}
-printjson = function(x){
- print( tojson( x ) );
-}
-
-printjsononeline = function(x){
- print( tojsononeline( x ) );
-}
-
if ( typeof TestData == "undefined" ){
TestData = undefined
}