JSON Key Sorter (Cleaner Diffs க்கான Stable Key Order)

Reviews மற்றும் comparisons எளிதாக இருக்க JSON key order-ஐ தானாக standardize செய்யுங்கள்.

அனைத்து levels அல்லது top level மட்டும் என்பதைத் தேர்வு செய்யலாம். Array order அப்படியே இருக்கும்.

நிலையான key order மூலம் cleaner diffs
Array order பாதுகாக்கப்படும்
அதே run-இல் indentation formatting
Processing முழுவதும் இந்த page-இலேயே நடக்கிறது (எதுவும் upload செய்யப்படாது).

Tool

JSON-ஐ ஒரே படியில் sort செய்து format செய்து, பின்னர் முடிவை copy செய்யவோ download செய்யவோ செய்யுங்கள்.

Shortcut: Run செய்ய Ctrl / Cmd + Enter

Sample (Before / After)

உள்ளீடு

{"b":1,"a":{"d":4,"c":3},"arr":[{"y":2,"x":1},3]}

All-level sort (2 spaces)

{
  "a": {
    "c": 3,
    "d": 4
  },
  "arr": [
    {
      "x": 1,
      "y": 2
    },
    3
  ],
  "b": 1
}

Top-level only sort

Top-level keys `a`, `arr`, `b` என reorder செய்யப்படும்; ஆனால் `a` உள்ளேயுள்ள key order நீங்கள் உள்ளிட்டபடியே இருக்கும்.

பயன்படுத்துவது எப்படி

  1. Input area-இல் JSON-ஐ paste செய்யுங்கள்.
  2. Scope (all levels/top level) மற்றும் indentation-ஐத் தேர்வு செய்யுங்கள்.
  3. Sort and Format-ஐ click செய்து, பின்னர் output-ஐ copy செய்யுங்கள்.

நீங்கள் செய்யக்கூடியவை

  • Object keys-ஐ ascending அல்லது descending முறையில் sort செய்
  • All levels அல்லது top-level only என்பதைத் தேர்வு செய்
  • Array elements வரிசையை மாற்றாமல் வை
  • Copy, download, மற்றும் input/output swap செய்

Specifications (Arrays, Nesting, Numeric Keys)

  • Object keys lexicographic முறையில் sort செய்யப்படும்; scope-ஐ all levels அல்லது top level only எனத் தேர்வு செய்யலாம்.
  • Array element order பாதுகாக்கப்படும்.
  • Indent options: 2 spaces, 4 spaces, tab, அல்லது minified one-line output.
  • Input செல்லுபடியாகும் JSON அல்லையெனில் error காட்டப்படும்; output update செய்யப்படாது.
  • JavaScript property enumeration rules காரணமாக integer போன்ற keys சில சமயம் numeric order-இல் தோன்றலாம்.

அடிக்கடி கேட்கப்படும் கேள்விகள்

Nested objects-ஐயும் sort செய்ய முடியுமா?

ஆம். All levels அல்லது top level only என்பதைத் தேர்வு செய்யலாம்.

Arrays-க்கு என்ன நடக்கும்?

Array element order பாதுகாக்கப்படும். Arrays உள்ள objects உங்கள் scope தேர்வைப் பொறுத்து sort செய்யப்படும்.

Original indentation-ஐ வைத்திருக்க முடியுமா?

Input formatting பாதுகாக்கப்படாது. நீங்கள் தேர்வு செய்த indentation style-இன் அடிப்படையில் output புதிதாக format செய்யப்படும்.

JSON5 comments அல்லது trailing commas ஆதரிக்கப்படுமா?

இல்லை. இந்த கருவி standard JSON-ஐ மட்டும் நோக்கமாகக் கொண்டுள்ளது.

Data எங்கே process செய்யப்படுகிறது?

எல்லாம் browser-இலேயே local ஆக நடக்கும். உங்கள் input server-க்கு அனுப்பப்படாது.