MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / exportJson

Method exportJson

app/src/API/Handlers/ProjectHandler.cpp:4162–4173  ·  view source on GitHub ↗

* @brief Export current project configuration as JSON */

Source from the content-addressed store, hash-verified

4160 * @brief Export current project configuration as JSON
4161 */
4162API::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

Callers

nothing calls this directly

Calls 1

serializeToJsonMethod · 0.80

Tested by

no test coverage detected