json structure reformat