

This gives you a new item in the “Text” -> “Apply Text Filter” sub-menu named whatever you named the file (PrettyJSON.py in my case).

Print json.dumps(jsonObj, sort_keys=True, indent=2)īecause Bare Bones Software is so cool this works with their free Text Wrangler editor as well except you just put the files in ~/Library/Application Support/TextWrangler/Text Filters/
Bbedit for python code#
Other interesting Windows alternatives to BBEdit are Visual Studio Code (Free), Sublime Text (Free Personal), Eclipse (Free, Open Source) and gedit (Free, Open Source. Neither BBEdit nor CodeRunner are bad, they just didn’t suit my workflow particularly well. When I started writing Python code I mainly used BBEdit and CodeRunner but I wanted to find a better tool for the job. It can be used to beautify the front window in BBEdit if that contains JSON: If that doesnt suit you, our users have ranked more than 100 alternatives to BBEdit and loads of them are available for Windows so hopefully you can find a suitable replacement. These range from Apple’s Xcode to text editors such as BBEdit with things things like CodeRunner in between.
Bbedit for python update#
Dad’s not a python programmer and Geek’s busy writing a Humanities 110 paper, but the simple python script PrettyJSON.py (below) seems to work if you put it into ~/Library/Application Support/BBEdit/Text Filters/ Release Date: BBEdit 12.1.6 was a free and recommended update for all customers with BBEdit 12.0 through 12.1.5, whose machines meet the OS requirements. Dad’s been working with some JSON output from a web service lately and it comes back lacking line-feeds and indentation which is great for transmission but hard to read for humans.
