changed mimetype of json response to application/json