Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SDK_API::writeStorageJson

Atomically saves JSON below a storage root.

Declaration

virtual void writeStorageJson(const std::string& scope, const std::string& path,
            const nlohmann::json& value, const std::string& project = "") {
            throw std::runtime_error("JSON storage helpers are unavailable in this host.");
        }

Parameters

NameDescription
scopeNamed storage root.
pathRelative JSON filename.
valueJSON document to save.
projectProject name; empty selects the active project.