[+] Create toJson util method
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import json
|
||||
|
||||
|
||||
def toJson(obj):
|
||||
return json.dumps(obj, default=lambda o: o.__dict__, sort_keys=True, indent=4)
|
||||
Reference in New Issue
Block a user