JSON 排序
在每一层按字母顺序对对象键排序,并可选择对数组排序。
输入
结果
使用方法
Sorting keys
Press Sort to order every object key alphabetically, recursively.
- Paste JSON into the input editor.
- Press Sort.
- Copy the ordered document.
常见问题
Are arrays reordered?
Arrays keep their order by default because array order is usually meaningful.
Is the comparison case sensitive?
Keys are compared using a locale aware, case insensitive ordering.