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

Function visit_end_object

include/jsoncons/json_encoder.hpp:369–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367 }
368
369 JSONCONS_VISITOR_RETURN_TYPE visit_end_object(const ser_context&, std::error_code&) final
370 {
371 JSONCONS_ASSERT(!stack_.empty());
372 --nesting_depth_;
373
374 unindent();
375 if (stack_.back().new_line_after())
376 {
377 new_line();
378 }
379 stack_.pop_back();
380 sink_.append(close_brace_str_.data(), close_brace_str_.length());
381 column_ += close_brace_str_.length();
382
383 end_value();
384 JSONCONS_VISITOR_RETURN;
385 }
386
387 JSONCONS_VISITOR_RETURN_TYPE visit_begin_array(semantic_tag, const ser_context&, std::error_code& ec) final
388 {

Callers 2

end_objectMethod · 0.70
end_objectMethod · 0.70

Calls 12

unindentFunction · 0.85
new_lineFunction · 0.85
new_line_afterMethod · 0.80
pop_backMethod · 0.80
end_valueFunction · 0.70
emptyMethod · 0.45
backMethod · 0.45
appendMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
push_backMethod · 0.45
increment_countMethod · 0.45

Tested by

no test coverage detected