Merge pull request #79 from neingeist/fix-trailing-whitespace

Avoid trailing whitespace in the JSON output
This commit is contained in:
baeuml
2014-04-02 14:17:51 +02:00
+1 -1
View File
@@ -314,7 +314,7 @@ class JsonContainer(AnnotationContainer):
"""
# TODO make all image filenames relative to the label file
f = open(fname, "w")
json.dump(annotations, f, indent=4, sort_keys=True)
json.dump(annotations, f, indent=4, separators=(',', ': '), sort_keys=True)
class MsgpackContainer(AnnotationContainer):