Changing content type to json