From cb8cd5ccc99a790a32740970db65b42aa7b18fa8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 2 Aug 2012 07:45:45 -0400 Subject: [PATCH] added json easy beautifier --- lib/client/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/editor.js b/lib/client/editor.js index 75938e47..e7da9f7d 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -140,7 +140,7 @@ CloudCommander.Editor.CodeMirror = { success:function(data, textStatus, jqXHR){ /* if we got json - show it */ if(typeof data === 'object') - data = JSON.stringify(data); + data = JSON.stringify(data, null, 4); initCodeMirror_f(data);