MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ParseJson

Function ParseJson

tensorflow/core/platform/cloud/gcs_file_system.cc:218–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218Status ParseJson(StringPiece json, Json::Value* result) {
219 Json::Reader reader;
220 if (!reader.parse(json.data(), json.data() + json.size(), *result)) {
221 return errors::Internal("Couldn't parse JSON response from GCS.");
222 }
223 return Status::OK();
224}
225
226Status ParseJson(const std::vector<char>& json, Json::Value* result) {
227 return ParseJson(StringPiece{json.data(), json.size()}, result);

Callers 4

UncachedStatForObjectMethod · 0.70
GetBucketLocationMethod · 0.70
GetChildrenBoundedMethod · 0.70
RenameObjectMethod · 0.70

Calls 4

InternalFunction · 0.85
parseMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected