asdf icon indicating copy to clipboard operation
asdf copied to clipboard

[feature request] serializeToJson(Pretty) with key sorted

Open mw66 opened this issue 5 years ago • 4 comments

Hi,

I think we need add this functionality to easily compare changed json files of different versions, or at least add the option to allow user sort the dict by keys, and save it.

e.g. in Python:

https://docs.python.org/3/library/json.html

>>> print(json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True))
{"a": 0, "b": 0, "c": 0}

mw66 avatar Aug 31 '20 18:08 mw66

@9il I saw you are making new releases, how about this feature request?

mw66 avatar Sep 17 '20 00:09 mw66

Unlikely this feature will be added to ASDF. The goal of current releases is to prepare closed source code bases for Mir Ion.

9il avatar Sep 17 '20 04:09 9il

Wow, so v0.6.x will be the last open source package?

For such general purpose library, I don't quite understand why it need to be closed source? As open source library, more people will use it, discover bugs, and even send fix PRs.

mw66 avatar Sep 17 '20 16:09 mw66

Wow, so v0.6.x will be the last open source package?

Will be at least v0.7.x

For such general purpose library, I don't quite understand why it need to be closed source? As open source library, more people will use it, discover bugs, and even send fix PRs.

Mir Ion is an open-source library. Currently preparing private codebase to migrate from ASDF to Mir Ion.

9il avatar Sep 18 '20 02:09 9il