update json structure returned