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

Method visit_begin_object

include/jsoncons/json_decoder.hpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 JSONCONS_VISITOR_RETURN_TYPE visit_begin_object(semantic_tag tag, const ser_context&, std::error_code&) override
126 {
127 if (structure_stack_.back().type_ == structure_type::root_t)
128 {
129 index_ = 0;
130 item_stack_.clear();
131 is_valid_ = false;
132 }
133 item_stack_.emplace_back(std::move(name_), index_++, json_object_arg, tag);
134 structure_stack_.emplace_back(structure_type::object_t, item_stack_.size()-1);
135 JSONCONS_VISITOR_RETURN;
136 }
137
138 JSONCONS_VISITOR_RETURN_TYPE visit_end_object(const ser_context&, std::error_code&) override
139 {

Callers

nothing calls this directly

Calls 3

backMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected