Always sort dictionary keys in JSON API payloads.

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

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.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (4c4e4df)