| 411 | } |
| 412 | |
| 413 | Result<int64_t> GetJsonInt(simdjson::dom::element value, std::string_view name, |
| 414 | std::string_view expected) { |
| 415 | if (!value.is_int64()) { |
| 416 | return Status::Invalid(name, " must contain ", expected, ", got ", |
| 417 | JsonTypeName(value.type())); |
| 418 | } |
| 419 | return ResolveSimdjsonResult(value.get_int64(), "Failed to get JSON integer"); |
| 420 | } |
| 421 | |
| 422 | Result<simdjson::dom::object> ParseJsonObject(simdjson::dom::parser& parser, |
| 423 | const std::string& json) { |
no test coverage detected