Added json_encode() to request_body in POST and PUT requests