Skip to content

Commit

Permalink
Merge pull request #58 from rchristie/master
Browse files Browse the repository at this point in the history
Serialise bytes string to JSON
  • Loading branch information
alan-wu authored Aug 6, 2019
2 parents 448da81 + 8d4ffd5 commit 289d330
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scaffoldmaker/scaffolds.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ def default(self, obj):
dct = obj.toDict()
dct['_ScaffoldPackage'] = True
return dct
elif isinstance(obj, bytes):
return obj.decode("utf-8")
else:
super().default(self, obj)
super().default(obj)


def Scaffolds_decodeJSON(dct):
Expand Down

0 comments on commit 289d330

Please sign in to comment.