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