Add json output format

Fixes #7
Add formatting explanation to README.md