aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/util/json_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/util/json_util.h')
-rw-r--r--src/google/protobuf/util/json_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/google/protobuf/util/json_util.h b/src/google/protobuf/util/json_util.h
index 53b1d1ba..439d137f 100644
--- a/src/google/protobuf/util/json_util.h
+++ b/src/google/protobuf/util/json_util.h
@@ -64,10 +64,13 @@ struct JsonPrintOptions {
// Whether to always print enums as ints. By default they are rendered as
// strings.
bool always_print_enums_as_ints;
+ // Whether to convert field names to snake case
+ bool use_snake_case_for_field_names;
JsonPrintOptions() : add_whitespace(false),
always_print_primitive_fields(false),
- always_print_enums_as_ints(false) {
+ always_print_enums_as_ints(false),
+ use_snake_case_for_field_names(false) {
}
};