use more compact representation when used as JSON
Merge pull request #11 from cenkalti/master

use more compact representation when used as JSON