mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
Sorting keys and removing whitespaces in Appointment.to_json
This commit is contained in:
@@ -25,4 +25,4 @@ class Appointment:
|
|||||||
# ToDO: #3-improve-appointment-structure
|
# ToDO: #3-improve-appointment-structure
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
return json.dumps(self.to_dict())
|
return json.dumps(self.to_dict(), sort_keys=True, separators=(',', ':'))
|
||||||
|
|||||||
Reference in New Issue
Block a user