首页
Tom Utilities

JSON 排序

JSON 工具

在每一层按字母顺序对对象键排序,并可选择对数组排序。

输入

结果

使用方法

Sorting keys

Press Sort to order every object key alphabetically, recursively.

  1. Paste JSON into the input editor.
  2. Press Sort.
  3. 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.