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

Method isJSON

src/Hooks.cpp:350–352  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

348
349////////////////////////////////////////////////////////////////////////////////
350bool Hooks::isJSON(const std::string& input) const {
351 return input.length() > 2 && input[0] == '{' && input[input.length() - 1] == '}';
352}
353
354////////////////////////////////////////////////////////////////////////////////
355void Hooks::assertValidJSON(const std::vector<std::string>& input,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected