libmir/asdf

[feature request] serializeToJson(Pretty) with key sorted

mw66 opened this issue · 4 comments

mw66 commented

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 commented

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

9il commented

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

mw66 commented

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.

9il commented

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.