Show More
@@ -48,6 +48,7 b' class JSONWriter(NotebookWriter):' | |||||
48 | def writes(self, nb, **kwargs): |
|
48 | def writes(self, nb, **kwargs): | |
49 | kwargs['cls'] = BytesEncoder |
|
49 | kwargs['cls'] = BytesEncoder | |
50 | kwargs['indent'] = 4 |
|
50 | kwargs['indent'] = 4 | |
|
51 | kwargs['sort_keys'] = True | |||
51 | return json.dumps(nb, **kwargs) |
|
52 | return json.dumps(nb, **kwargs) | |
52 |
|
53 | |||
53 |
|
54 |
General Comments 0
You need to be logged in to leave comments.
Login now