Dnomd343
2 years ago
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||||
|
#!/usr/bin/env python3 |
||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
import sys |
||||
|
import json |
||||
|
from common import loadData |
||||
|
|
||||
|
|
||||
|
def jsonRelease(metadata: dict, content: dict) -> str: |
||||
|
return json.dumps( |
||||
|
{ |
||||
|
'metadata': metadata, |
||||
|
'content': content, |
||||
|
}, separators = (',', ':') |
||||
|
) |
||||
|
|
||||
|
|
||||
|
if __name__ == '__main__': |
||||
|
data = loadData(sys.argv[1]) |
||||
|
print(jsonRelease(data['metadata'], data['content'])) |
Loading…
Reference in new issue