update HTTP response to json format