キーの順番をそろえる方法
この記事のポイント
- 貼る
- 印をつける
2つのJSONを見くらべるときに便利です。
手順
- JSONを整える・チェックする にJSONを貼り付けます。
- 「キーの順番を並べ替える」にチェックを入れます。
- 並べ替えた結果を、コピーします。
あわせて使えるツール
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- ファイルとBase64を相互変換する:ファイルとBase64の文字を相互に変換します。
- 重複した行を消す・並べ替える:重複した行を消して、並べ替えます。
同じツールの、ほかの解説
How to Sort the Keys
Key points
- Paste
- Tick
Handy when comparing two JSONs.
Steps
- Paste the JSON into Format and Validate JSON.
- Tick "Sort the keys".
- Copy the sorted result.
Tools that go well with this
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Convert Files and Base64: Convert between files and Base64 text.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.