Update docs for MessageToJson indent parameter

See https://github.com/protocolbuffers/protobuf/issues/10518
pull/10519/head
Alexander Reynolds 3 years ago committed by GitHub
parent 4efbcc4460
commit 80868f14d0
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