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.
std.json has started to unconditionally sort the keys of JSON objects in its output a while ago. (It's an improvement over letting the order be dictated by the implementation details of the D associative array implementation in Druntime).
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10360 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB