MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / jsonifyAsString

Function jsonifyAsString

src/common/json_utils.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59yyjson_mut_val* jsonifyAsString(JsonMutWrapper& wrapper, const common::ValueVector& vec,
60 uint64_t pos) {
61 auto strVal = vec.getAsValue(pos)->toString();
62 return yyjson_mut_strcpy(wrapper.ptr, strVal.c_str());
63}
64
65yyjson_mut_val* jsonify(JsonMutWrapper& wrapper, const common::ValueVector& vec, uint64_t pos) {
66 // creates a mutable value linked to wrapper.ptr, but the responsibility to integrate it into

Callers 1

jsonifyFunction · 0.85

Calls 2

getAsValueMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected