virtual void begin_object() { begin_structure(); if (indenting_ && !stack_.empty() && stack_.back().is_object()) { write_indent(); } stack_.push_back(stack_item(true)); os_.put('{'); indent(); }
void do_begin_object() override { begin_structure(); if (indenting_ && !stack_.empty() && stack_.back().is_object()) { write_indent(); } stack_.push_back(stack_item(true)); os_->put('{'); indent(); }
void do_begin_array() override { begin_structure(); if (indenting_ && !stack_.empty() && stack_.back().is_object()) { write_indent(); } stack_.push_back(stack_item(false)); bos_.put('['); indent(); }
virtual void begin_array(const basic_parsing_context<Char>& context) { stack_.push_back(stack_item(false,context.minimum_structure_capacity())); }