Change reponse type to JSON