From 89eb4e51b24f7417224b47faf32503d11b6b1bc0 Mon Sep 17 00:00:00 2001 From: Brendan McCarthy Date: Fri, 17 Mar 2017 22:47:38 +1000 Subject: Add option to preserve original proto field names --- src/google/protobuf/util/json_util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/google/protobuf/util/json_util.h') diff --git a/src/google/protobuf/util/json_util.h b/src/google/protobuf/util/json_util.h index 439d137f..dd9a736f 100644 --- a/src/google/protobuf/util/json_util.h +++ b/src/google/protobuf/util/json_util.h @@ -64,13 +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; + // Whether to preserve proto field names + bool preserve_proto_field_names; JsonPrintOptions() : add_whitespace(false), always_print_primitive_fields(false), always_print_enums_as_ints(false), - use_snake_case_for_field_names(false) { + preserve_proto_field_names(false) { } }; -- cgit v1.2.3