fix a json structure.