* @brief Export current project configuration as JSON */
| 4160 | * @brief Export current project configuration as JSON |
| 4161 | */ |
| 4162 | API::CommandResponse API::Handlers::ProjectHandler::exportJson(const QString& id, |
| 4163 | const QJsonObject& params) |
| 4164 | { |
| 4165 | Q_UNUSED(params) |
| 4166 | |
| 4167 | auto& project = DataModel::ProjectModel::instance(); |
| 4168 | const QJsonObject json = project.serializeToJson(); |
| 4169 | |
| 4170 | QJsonObject result; |
| 4171 | result[QStringLiteral("config")] = json; |
| 4172 | return CommandResponse::makeSuccess(id, result); |
| 4173 | } |
| 4174 | |
| 4175 | /** |
| 4176 | * @brief Load current project JSON into FrameBuilder |
nothing calls this directly
no test coverage detected