Trailing Comma Errors in JSON

Ever infuriated because you broke a JSON file with a stray trailing comma? Me too. If you use Sublime, here's a fix.

Unzip this file into Packages/User. It's a macro with a find-and-replace that locates and removes commas followed by a brace, ignoring whitespace, and a keybind to put it on F8, which is not otherwise used in a vanilla Sublime install.

Hopefully sharing it with other people will make my hour-and-a-half quest to find a solution worthwhile!

Bryan
Web admin for the Christian Gamers Guild and co-host of the Geek @ Arms podcast. Bryan primarily runs character-driven narrativist RPGs such as Primetime Adventures and Tales From the Loop.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.