cubicLoader: added saving model to JSON format