Added basic JSON output.