Run Pretty JSON: Uglify to revert back to the unformatted JSON
Configuration
By default, this extension does not define any keybindings in order to avoid interfering with existing settings.
However, the commands provided by this extension can be bound to any keybinding.
This can be done by opening the command palette, searching for Preferences: Open Keyboard Shortcuts (JSON), and adding something like the following: