MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / checkAddComma

Method checkAddComma

src/base/JSONSerializer.h:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 private:
101
102 void checkAddComma() {
103 const char c = _json.back();
104 if (c == '\"' || c == '}' || c == ']' || std::isdigit(c)) {
105 _json += ", ";
106 }
107 }
108
109 std::string makeJSONString(const std::string &msg) {
110 std::string json(msg);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected