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

Method JsonValue

src/KeyFrame.cpp:339–352  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

337
338// Generate Json::Value for this object
339Json::Value Keyframe::JsonValue() const {
340
341 // Create root json object
342 Json::Value root;
343 root["Points"] = Json::Value(Json::arrayValue);
344
345 // loop through points
346 for (const auto existing_point : Points) {
347 root["Points"].append(existing_point.JsonValue());
348 }
349
350 // return JsonValue
351 return root;
352}
353
354// Load JSON string into this object
355void Keyframe::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected