MCPcopy Create free account
hub / github.com/VCVRack/Rack / fromJson

Method fromJson

src/core/Notes.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 }
16
17 void fromJson(json_t* rootJ) override {
18 Module::fromJson(rootJ);
19 // In <1.0, module used "text" property at root level.
20 json_t* textJ = json_object_get(rootJ, "text");
21 if (textJ)
22 text = json_string_value(textJ);
23 dirty = true;
24 }
25
26 json_t* dataToJson() override {
27 json_t* rootJ = json_object();

Callers

nothing calls this directly

Calls 1

fromJsonFunction · 0.85

Tested by

no test coverage detected