json-truncate
Advanced tools
+1
-1
@@ -31,3 +31,3 @@ 'use strict'; | ||
| try { | ||
| return JSON.stringify(truncate(obj, maxDepth || 10)); | ||
| return truncate(obj, maxDepth || 10); | ||
| } catch (e) { | ||
@@ -34,0 +34,0 @@ console.log(e); |
+1
-1
| { | ||
| "name": "json-truncate", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "A way to truncate a json object.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+1
-1
@@ -26,3 +26,3 @@ # json-truncate [](http://badge.fury.io/js/json-truncate) | ||
| * `obj` - The Object that will be truncated. | ||
| * `maxDepth` - The depth at which to stop building the valid json. | ||
| * `maxDepth` - (optional) The depth at which to stop building the valid json. Defaults to `10`. | ||
@@ -29,0 +29,0 @@ |
3715
0.35%