Test coverage for JSON output.

See #224.