Update reference to missing function JsonStringToBinary() (#13581)

Also tweaked the "simple wrapper" language since the implementation does not appear to delegate to JsonToBinaryStream() directly.

Closes #13581

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13581 from dimo414:dimo414-patch-1 7522ae1673
PiperOrigin-RevId: 561610218
pull/13806/head
Michael Diamond 1 year ago committed by Copybara-Service
parent a773618181
commit a7eee92b66
  1. 4
      src/google/protobuf/json/json.h

@ -92,8 +92,8 @@ inline absl::Status MessageToJsonString(const Message& message,
return MessageToJsonString(message, output, PrintOptions());
}
// Converts from JSON to protobuf message. This is a simple wrapper of
// JsonStringToBinary(). It will use the DescriptorPool of the passed-in
// Converts from JSON to protobuf message. This works equivalently to
// JsonToBinaryStream(). It will use the DescriptorPool of the passed-in
// message to resolve Any types.
//
// Please note that non-OK statuses are not a stable output of this API and

Loading…
Cancel
Save