json.dumps with sort_keys? #13235
-
I am porting SinricPro library for Micropython.
prints
Any workaround for this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's a bit messy but you can turn the dict into a sorted OrderedDict first, I think this would work:
|
Beta Was this translation helpful? Give feedback.
It's a bit messy but you can turn the dict into a sorted OrderedDict first, I think this would work: