js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

recursively sort json dicts by keys

Open ZSaberLv0 opened this issue 3 years ago • 5 comments

Description

recursively sort json dicts by keys, mainly for json files disabled by default, and add an option to enable it

Input

With this new feature, when I give like this input:

{
  "b" : "b",
  "c" : {
    "b" : "b",
    "a" : "a"
  },
  "a" : ["array", "not", "affected"]
}

Expected Output

I'd like to see this output:

{
  "a" : ["array", "not", "affected"],
  "b" : "b",
  "c" : {
    "a" : "a",
    "b" : "b"
  }
}

Environment

OS: all

ZSaberLv0 avatar Aug 06 '21 08:08 ZSaberLv0

I would like to solve this issue. It's my first fix can get some help on the procedure?

sahilmore-git avatar Aug 18 '21 06:08 sahilmore-git

I am done with code Can Someone help me with how and where I can add my code?

yashgandhi876 avatar Aug 18 '21 08:08 yashgandhi876

i would like to work on this and this will be my first contribute

adrian2504 avatar Aug 18 '21 10:08 adrian2504

Completed it and in which file or directory shall it update it ?

adrian2504 avatar Aug 18 '21 10:08 adrian2504

Um, submit a pull request?

bitwiseman avatar Sep 09 '21 20:09 bitwiseman