JSON generator added to help with testing