Updates the hash part with json encode of response.