MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / null_example

Function null_example

examples/src/bson_examples.cpp:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void null_example()
166{
167 json j;
168 j.try_emplace("hello", json::null());
169
170 std::vector<char> buffer;
171 bson::encode_bson(j, buffer);
172 std::cout << jsoncons::byte_string_view(buffer) << "\n\n";
173}
174
175void duration_example1()
176{

Callers 1

mainFunction · 0.85

Calls 3

encode_bsonFunction · 0.85
byte_string_viewClass · 0.85
try_emplaceMethod · 0.45

Tested by

no test coverage detected