use ordereddict to keep the original order in json file, if keys are not sorted.