Wrap records array in a dictionary
This commit is contained in:
parent
942f04e68f
commit
d42b83698a
1 changed files with 4 additions and 1 deletions
|
@ -114,7 +114,10 @@ def main(argv):
|
|||
'reason_for_death': reason.strip(),
|
||||
})
|
||||
|
||||
json.dump(records, sys.stdout, indent=2)
|
||||
output_object = {
|
||||
'records': records,
|
||||
}
|
||||
json.dump(output_object, sys.stdout, indent=2)
|
||||
print('\n')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue