mirror of
https://github.com/wassname/sloth.git
synced 2026-06-27 18:25:49 +08:00
Merge pull request #83 from neingeist/fix/json-newline-at-end
Add a newline at the end of the JSON file
This commit is contained in:
@@ -313,6 +313,7 @@ class JsonContainer(AnnotationContainer):
|
||||
"""
|
||||
f = open(fname, "w")
|
||||
json.dump(annotations, f, indent=4, separators=(',', ': '), sort_keys=True)
|
||||
f.write("\n")
|
||||
|
||||
|
||||
class MsgpackContainer(AnnotationContainer):
|
||||
|
||||
Reference in New Issue
Block a user