Replies: 1 comment 3 replies
-
|
We had IMO one occurrence where clever renaming of a key simplified reading the (alphabetic) sequence of our GeoJsons. Other than that, sorting lists/dicts alphabetically is good enough for me, and does not need yet another external dependency. Of course, SCM can introduce a non-alphabetic human-logical order when creating the JSON as "plain text file" that may be easier for manual finetuning. What sequence is problematic for you? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be of interest to you to switch from QJson to something like https://json.nlohmann.me/api/ordered_json/ to export json that more closely matches the already existing sky cultures (by ordering the keys)?
We currently use QJson which automatically sorts all json keys alphabetically. The created json files thus seem a little chaotic.
If these index.json files are not meant to be read by humans, then I suppose this does not matter and we should keep it as-is.
Any opinions?
Beta Was this translation helpful? Give feedback.
All reactions