MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetJson

Method SetJson

src/effects/AnalogTape.cpp:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void AnalogTape::SetJson(const std::string value) {
400 try {
401 Json::Value root = openshot::stringToJson(value);
402 SetJsonValue(root);
403 } catch (const std::exception &) {
404 throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
405 }
406}
407
408void AnalogTape::SetJsonValue(const Json::Value root) {
409 EffectBase::SetJsonValue(root);

Callers

nothing calls this directly

Calls 1

InvalidJSONClass · 0.85

Tested by

no test coverage detected