enforced consistent ordering when iterating over keys of a dictionary in json parser