|
@@ -25,12 +25,12 @@ class json_export(export):
|
|
|
|
|
|
data = converter_factory.create(model).convert(model)
|
|
data = converter_factory.create(model).convert(model)
|
|
|
|
|
|
- return json.dumps(data, indent=4)
|
|
|
|
|
|
+ return json.dumps(data, indent=4) + ","
|
|
|
|
|
|
def postprocess(self, text):
|
|
def postprocess(self, text):
|
|
"""Пост-обработка текста перед экспортом (по надобности)"""
|
|
"""Пост-обработка текста перед экспортом (по надобности)"""
|
|
|
|
|
|
- return f"{{\n [{text}\n ]\n}}"
|
|
|
|
|
|
+ return f'{{\n "items": [{text[:-1]}\n ]\n}}'
|
|
|
|
|
|
@property
|
|
@property
|
|
def mimetype(self):
|
|
def mimetype(self):
|