Allow API responses to encode a set().
Review Request #12385 — Created June 17, 2022 and submitted — Latest diff uploaded
By default, Python's
jsonmodule can't encode aset. This hasn't
historically been a problem for us, but with the introduction of code
safety checks in Review Board, we're now trying to encodesets in
responses.This change adds formal support for a
setin all of our JSON
serializers, including that for the API. Thesetis turned into a
sorted list of items.
Unit tests passed.
Verified that I could retrieve API results containing encoded
sets.