| 115 | } |
| 116 | |
| 117 | Status JsonReader::ExtractInt64(const Value* object, |
| 118 | const char* field, |
| 119 | int64_t* result) const { |
| 120 | const Value* val; |
| 121 | RETURN_NOT_OK(ExtractField(object, field, &val)); |
| 122 | if (PREDICT_FALSE(!val->IsInt64())) { |
| 123 | return Status::InvalidArgument(Substitute( |
| 124 | "wrong type during field extraction: expected int64 but got $0", |
| 125 | TypeToString(val->GetType()))); |
| 126 | } |
| 127 | *result = val->GetInt64(); |
| 128 | return Status::OK(); |
| 129 | } |
| 130 | |
| 131 | Status JsonReader::ExtractUint64(const Value* object, |
| 132 | const char* field, |