change json structure to match original