Remove debug print of decoded object and change of default ident size to 2

This commit is contained in:
Nikolajus 2012-12-28 17:17:14 +01:00
parent d0bb576c75
commit 5ab38e46a6
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"use_entire_file_if_no_selection" : true,
"indent" : 4,
"indent" : 2,
"sort_keys" : false,
"ensure_ascii" : false
}

View File

@ -30,9 +30,9 @@ class PrettyjsonCommand(sublime_plugin.TextCommand):
obj = json.loads(self.view.substr(selection),
object_pairs_hook=OrderedDict,
parse_float=decimal.Decimal)
print obj
self.view.replace(edit, selection, json.dumps(obj,
indent=s.get("indent", 4),
indent=s.get("indent", 2),
ensure_ascii=s.get("ensure_ascii", False),
sort_keys=s.get("sort_keys", False),
separators=(',', ': '),

View File

@ -18,7 +18,7 @@ If JSON is not valid it will be displayed in status bar of sublime.
**use_entire_file_if_no_selection** - true
**indent** - 4
**indent** - 2
**sort_keys** - false