post request works, but not in JSON format