@@ -0,0 +1,474 @@
+import sublime_plugin%0Aimport json%0Afrom collections import OrderedDict%0A%0A%0Aclass PrettifyJsonCommand(sublime_plugin.TextCommand):%0A    def run(self, edit, indent=4):%0A        for region in filter(lambda sel: not sel.empty(), self.view.sel()):%0A            text = self.view.substr(region)%0A            ugly_json = json.loads(text, object_pairs_hook=OrderedDict)%0A            pretty_json = json.dumps(ugly_json, indent=indent)%0A            self.view.replace(edit, region, pretty_json)%0A

Add sublime plugins collection