Lines Matching refs:json
52 bool AllFieldsAreKnown(const Message& message, const Json::Value& json, in AllFieldsAreKnown() argument
54 if (!json.isObject()) { in AllFieldsAreKnown()
60 auto json_members = json.getMemberNames(); in AllFieldsAreKnown()
95 const Json::Value& json_value = json[json_name]; in AllFieldsAreKnown()
136 bool AllFieldsAreKnown(const google::protobuf::Message& message, const std::string& json, in AllFieldsAreKnown() argument
141 if (!reader->parse(&*json.begin(), &*json.end(), &value, error)) { in AllFieldsAreKnown()
154 bool EqReformattedJson(const std::string& json, google::protobuf::Message* scratch_space, in EqReformattedJson() argument
159 if (!reader->parse(&*json.begin(), &*json.end(), &old_json, error)) { in EqReformattedJson()
163 auto new_json_string = internal::FormatJson(json, scratch_space); in EqReformattedJson()
201 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space) { in FormatJson() argument
202 auto res = internal::JsonStringToMessage(json, scratch_space); in FormatJson()