Browse Source

fix json filter indent arg

Evan You 11 years ago
parent
commit
f1c6f7cc15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/filters/index.js

+ 1 - 1
src/filters/index.js

@@ -7,7 +7,7 @@ var _ = require('../util')
  */
  */
 
 
 exports.json = function (value, indent) {
 exports.json = function (value, indent) {
-  return JSON.stringify(value, null, indent || 2)
+  return JSON.stringify(value, null, Number(indent) || 2)
 }
 }
 
 
 /**
 /**