MCPcopy Create free account
hub / github.com/ceph/ceph / encode_json

Function encode_json

src/common/ceph_json.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static JSONFormattable default_formattable;
28
29void encode_json(const char *name, const JSONObj::data_val& v, Formatter *f)
30{
31 if (v.quoted) {
32 encode_json(name, v.str, f);
33 } else {
34 f->dump_format_unquoted(name, "%s", v.str.c_str());
35 }
36}
37
38JSONObjIter::JSONObjIter()
39{

Callers 1

encode_jsonMethod · 0.70

Calls 10

dump_format_unquotedMethod · 0.80
c_strMethod · 0.45
dump_stringMethod · 0.45
dump_boolMethod · 0.45
dump_intMethod · 0.45
dump_unsignedMethod · 0.45
dump_streamMethod · 0.45
encode_base64Method · 0.45
lengthMethod · 0.45
encode_jsonMethod · 0.45

Tested by

no test coverage detected