Remove debug print of decoded object and change of default ident size to 2
This commit is contained in:
parent
d0bb576c75
commit
5ab38e46a6
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"use_entire_file_if_no_selection" : true,
|
||||
"indent" : 4,
|
||||
"indent" : 2,
|
||||
"sort_keys" : false,
|
||||
"ensure_ascii" : false
|
||||
}
|
|
@ -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=(',', ': '),
|
||||
|
|
Loading…
Reference in New Issue