Changed response type to json