correction of json structure