| 675 | } |
| 676 | |
| 677 | Status AppendValue(const rj::Value& json_obj) override { |
| 678 | if (json_obj.IsNull()) { |
| 679 | return this->AppendNull(); |
| 680 | } |
| 681 | RETURN_NOT_OK(builder_->Append()); |
| 682 | // Extend the child converter with this JSON array |
| 683 | RETURN_NOT_OK(child_converter_->AppendValues(json_obj)); |
| 684 | if (json_obj.GetArray().Size() != static_cast<rj::SizeType>(list_size_)) { |
| 685 | return Status::Invalid("incorrect list size ", json_obj.GetArray().Size()); |
| 686 | } |
| 687 | return Status::OK(); |
| 688 | } |
| 689 | |
| 690 | std::shared_ptr<ArrayBuilder> builder() override { return builder_; } |
| 691 |
nothing calls this directly
no test coverage detected