add json output
Merge pull request #1317 from spechub/1267-json

add json output