| 32 | } |
| 33 | |
| 34 | Status ParseJson(StringPiece json, Json::Value* result) { |
| 35 | Json::Reader reader; |
| 36 | if (!reader.parse(string(json), *result)) { |
| 37 | return errors::Internal("Couldn't parse JSON response from BigQuery."); |
| 38 | } |
| 39 | return Status::OK(); |
| 40 | } |
| 41 | |
| 42 | Status ParseColumnType(const string& type, |
| 43 | BigQueryTableAccessor::ColumnType* enum_type) { |
no test coverage detected