Adding json handing to put requests