Don't overwrite json files with failed formatting
Don't overwrite json files with failed formatting

Previously if the json formatting fails, the json.tool still overwrites
the output file, just with an error. Now we write it to a temp file and
only move it back to the original spot if it's successful

keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles