From e71c014535e402a40001bdebfc13534e1624831c Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:07:58 +0800 Subject: [PATCH] Sorting keys and removing whitespaces in Appointment.to_json --- pisa/appointment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisa/appointment.py b/pisa/appointment.py index f8a442a..85074fc 100644 --- a/pisa/appointment.py +++ b/pisa/appointment.py @@ -25,4 +25,4 @@ class Appointment: # ToDO: #3-improve-appointment-structure def to_json(self): - return json.dumps(self.to_dict()) + return json.dumps(self.to_dict(), sort_keys=True, separators=(',', ':'))