Skip to content

Commit 4c87396

Browse files
committed
convert result instance to json
1 parent 424ef82 commit 4c87396

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pysmartprice/results.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import json
2+
3+
14
class SmartPriceResult(object):
25
def __init__(self, params):
36
self.__dict__.update(params)
7+
8+
def dumpjson(self):
9+
return json.dumps(self.__dict__)

0 commit comments

Comments
 (0)