redo json output for issue 9464
Merge pull request #1632 from WalterBright/json

redo json output