Support pretty-printing of JSON.

Relates #48.