13 lines
236 B
Python
13 lines
236 B
Python
|
import json
|
||
|
|
||
|
|
||
|
class JSONFormatter(object):
|
||
|
def format(self, sheet):
|
||
|
return json.dumps(
|
||
|
{
|
||
|
'seed': sheet.seed,
|
||
|
'entries': sheet.entries
|
||
|
},
|
||
|
indent=4
|
||
|
)
|