update json structure of response