cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
608 stars 198 forks source link

Avoid trailing whitespace in the JSON output #79

Closed neingeist closed 10 years ago

neingeist commented 10 years ago

The default separators used in the Python JSON library's dump() write output with trailing whitespace. Use custom separators to avoid that, as described in the documentation:

http://docs.python.org/2/library/json.html