Closes the current sub-section and restores the previous write context
| 149 | |
| 150 | /// Closes the current sub-section and restores the previous write context |
| 151 | BOOL ValidateJsonWriter::endsub(const std::string& key) { |
| 152 | if (file == nullptr || stack.size() <= 1) return FALSE; |
| 153 | |
| 154 | stack.pop_back(); |
| 155 | return TRUE; |
| 156 | } |
| 157 | |
| 158 | /// Closes the current section and restores the parent context; finalizes output if the root section is closed |
| 159 | BOOL ValidateJsonWriter::end(const std::string& key) { |