changing json structure