Add the ability to output badges as JSON.