diff --git a/PrettyJson.py b/PrettyJson.py index f6b0c80..474c54a 100644 --- a/PrettyJson.py +++ b/PrettyJson.py @@ -18,6 +18,6 @@ class PrettyjsonCommand(sublime_plugin.TextCommand): try: obj = json.loads(self.view.substr(selection)) - self.view.replace(edit, selection, json.dumps(obj, indent=s.get("indent_size", 4), ensure_ascii=False, sort_keys=s.get("sort_keys", True))) + self.view.replace(edit, selection, json.dumps(obj, indent=s.get("indent_size", 4), ensure_ascii=False, sort_keys=s.get("sort_keys", True), separators=(',', ': '))) except Exception, e: sublime.status_message(str(e))