I have a bunch of automatically generated JSON files that I want to store in version control. The problem is that each time the files are serialized, the attributes come out in a different order, making it hard to know if the files have really changed and / or what the real differences are.
有没有人知道现有的开放源码工具可以执行这项任务?
如果做不到这一点,有没有人知道带有解析器和生成器的JSON库可以配置为以(比方说)词汇顺序输出具有属性的"漂亮的"JSON?(Java或Ruby库将是理想的,但也欢迎其他线索.)