| 477 | Status VisitArrayValues(const Array& arr) { return VisitArrayInline(arr, this); } |
| 478 | |
| 479 | Status VisitArray(const std::string& name, const Array& arr) { |
| 480 | writer_->StartObject(); |
| 481 | writer_->Key("name"); |
| 482 | writer_->String(name); |
| 483 | |
| 484 | writer_->Key("count"); |
| 485 | writer_->Int(static_cast<int32_t>(arr.length())); |
| 486 | |
| 487 | RETURN_NOT_OK(VisitArrayValues(arr)); |
| 488 | |
| 489 | writer_->EndObject(); |
| 490 | return Status::OK(); |
| 491 | } |
| 492 | |
| 493 | void WriteRawNumber(std::string_view v) { |
| 494 | // Avoid RawNumber() as it misleadingly adds quotes |