Change the response type to json for template generated ids