-
Notifications
You must be signed in to change notification settings - Fork 15.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we make json_format._AnyMessageToJsonObject non-private? #1351
Comments
While we're at it, the inverse |
The python json_format API already provides MessageToJson() which converts a proto message to a JSON string. So what you need is a MessageToJsonObject() that converts the message to a JSON object instead of a string. Is this correct? |
@xfxyjwf Yes, that is correct: our code right now works around the missing |
A putative |
@xfxyjwf Any decision / motion on this issue? |
I believe it has been supported by def MessageToDict(): |
…uffers#1351) * Add unc paths to isAbsolute regex * Allow unc paths to be resolved and normalized * Remove trailing whitespace
https://github.com/google/protobuf/blob/9240acd179708c3a2ab79508af6fd68efa6f883a/python/google/protobuf/json_format.py#L207
It seems super useful - but keeping it private makes us sad :(
The text was updated successfully, but these errors were encountered: