Merge pull request #10519 from alkasm/patch-1

Update docs for MessageToJson indent parameter
pull/10541/head
deannagarcia 3 years ago committed by GitHub
commit 25fd37b485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      python/google/protobuf/json_format.py

@ -109,7 +109,8 @@ def MessageToJson(
names as defined in the .proto file. If False, convert the field
names to lowerCamelCase.
indent: The JSON object will be pretty-printed with this indent level.
An indent level of 0 or negative will only insert newlines.
An indent level of 0 or negative will only insert newlines. If the
indent level is None, no newlines will be inserted.
sort_keys: If True, then the output will be sorted by field names.
use_integers_for_enums: If true, print integers instead of enum names.
descriptor_pool: A Descriptor Pool for resolving types. If None use the

Loading…
Cancel
Save