Minify json by default.

This calls `json.dump` and `json.dumps` with the `seperators` argument to eliminate excess whitespace in the json. I also removed the excess whitespace from the corresponding test cases.