add support for JSON output