MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / parseJSON

Method parseJSON

src/Task.cpp:550–556  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Note that all fields undergo encode/decode.

Source from the content-addressed store, hash-verified

548////////////////////////////////////////////////////////////////////////////////
549// Note that all fields undergo encode/decode.
550void Task::parseJSON(const std::string& line) {
551 // Parse the whole thing.
552 json::value* root = json::parse(line);
553 if (root && root->type() == json::j_object) parseJSON((json::object*)root);
554
555 delete root;
556}
557
558////////////////////////////////////////////////////////////////////////////////
559void Task::parseJSON(const json::object* root_obj) {

Callers

nothing calls this directly

Calls 4

typeMethod · 0.80
findMethod · 0.80
dumpMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected