| 530 | } |
| 531 | |
| 532 | void endJsonSection() { |
| 533 | if (jsonSection.has_value()) { |
| 534 | const auto nl = outputFormat != OutputFormat::json_mini ? "\n" : ""; |
| 535 | if (!jsonSectionEmpty) { |
| 536 | printIndent(0, "{}", nl); |
| 537 | printIndent(1, "}}"); |
| 538 | } |
| 539 | jsonSection.reset(); |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | void setContext(std::string&& ctx) { |
| 544 | context.clear(); |