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

Method SetJson

src/effects/LensFlare.cpp:387–391  ·  view source on GitHub ↗

Parse JSON from string

Source from the content-addressed store, hash-verified

385
386// Parse JSON from string
387void LensFlare::SetJson(const std::string v)
388{
389 try { SetJsonValue(openshot::stringToJson(v)); }
390 catch (...) { throw InvalidJSON("LensFlare JSON"); }
391}
392
393// Apply JSON values to effect
394void LensFlare::SetJsonValue(const Json::Value r)

Callers

nothing calls this directly

Calls 1

InvalidJSONClass · 0.85

Tested by

no test coverage detected