added json easy beautifier

This commit is contained in:
coderaiser 2012-08-02 07:45:45 -04:00
parent 9da991a41f
commit cb8cd5ccc9

View file

@ -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);