MCPcopy Create free account
hub / github.com/comaps/comaps / ToJSONObject

Function ToJSONObject

libs/cppjansson/cppjansson.hpp:247–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246template <typename T>
247void ToJSONObject(json_t & root, char const * field, T const & value)
248{
249 json_object_set_new(&root, field, ToJSON(value).release());
250}
251
252inline void ToJSONObject(json_t & parent, char const * field, base::JSONPtr && child)
253{

Callers 9

DebugPrintFunction · 0.50
ToJsonObjectOrValueMethod · 0.50
PointToJsonFunction · 0.50
ShapeLinkToJsonFunction · 0.50
FrequenciesToJsonFunction · 0.50
ScheduleToJsonFunction · 0.50
TranslationsToJsonFunction · 0.50
WriteMethod · 0.50
SerializeRoutePointFunction · 0.50

Calls 4

NewJSONArrayFunction · 0.85
ToJSONFunction · 0.70
getMethod · 0.65
releaseMethod · 0.45

Tested by

no test coverage detected