Always sort dictionary keys in JSON API payloads.

Review Request #10250 — Created Oct. 21, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-2.0.x
e662dd4...

Reviewers

This changes the JSON API payloads to output with keys in sort order.
While nicer for readability, this actually helps a lot with Python 2/3
compatibility, as there are differences in sort order. By sorting keys,
we get predictable output and ETags that we can rely upon.

Unit tests pass on Python 2.7, 3.5, and 3.6.

    Loading...