changed text/json to correct application/json