MCPcopy Create free account
hub / github.com/couchbase/fleece / writeKey

Method writeKey

Fleece/Support/JSONEncoder.cc:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 void JSONEncoder::writeKey(slice s) {
79 assert_precondition(s);
80 if (_json5 && canBeUnquotedJSON5Key(s)) {
81 comma();
82 _out.write((char*)s.buf, s.size);
83 } else {
84 writeString(s);
85 }
86 _out << ':';
87 _first = true;
88 }
89
90
91 void JSONEncoder::writeDict(const Dict *dict) {

Callers

nothing calls this directly

Calls 2

canBeUnquotedJSON5KeyFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected