void CModHandler::handleData(Handler handler, const JsonNode & source, std::string listName, std::string schemaName) { JsonNode config = JsonUtils::assembleFromFiles(source[listName].convertTo<std::vector<std::string> >()); for(auto & entry : config.Struct()) { if (!entry.second.isNull()) // may happens if mod removed object by setting json entry to null { JsonUtils::validate(entry.second, schemaName, entry.first); handler->load(entry.first, entry.second); } } }