Added basic support for JSON export