| 403 | } |
| 404 | |
| 405 | Result<simdjson::dom::array> GetJsonArray(simdjson::dom::element value, |
| 406 | std::string_view name) { |
| 407 | if (!value.is_array()) { |
| 408 | return Status::Invalid(name, " must be an array, got ", JsonTypeName(value.type())); |
| 409 | } |
| 410 | return ResolveSimdjsonResult(value.get_array(), "Failed to get JSON array"); |
| 411 | } |
| 412 | |
| 413 | Result<int64_t> GetJsonInt(simdjson::dom::element value, std::string_view name, |
| 414 | std::string_view expected) { |
no test coverage detected