change the template to json not erb