Added JsonFormatter for REST API endpoint