Save badges as json