[Issue 19390] New: Add "sorted" to JSONOptions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 10 11:52:51 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19390
Issue ID: 19390
Summary: Add "sorted" to JSONOptions
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: andre at s-e-a-p.de
While calling std.json: toPrettyString I want to have an option to get the keys
sorted. An option "sorted" could be added to JSONOptions.
Use case: I automatic create and update a JSON file. A user also updates this
file manually. To have a stable order of the keys, the keys should always be
stored in a sorted way.
This is good for the user and also for git diffs.
--
More information about the Digitalmars-d-bugs
mailing list