update request and json_decode to work on data