summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/cpp/protobuf/json/proto2json_printer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/protobuf/json/proto2json_printer.cpp b/library/cpp/protobuf/json/proto2json_printer.cpp
index a9f8c3fce99..706b3b8c628 100644
--- a/library/cpp/protobuf/json/proto2json_printer.cpp
+++ b/library/cpp/protobuf/json/proto2json_printer.cpp
@@ -253,7 +253,7 @@ namespace NProtobufJson {
bool inProtoMap) {
Y_ABORT_UNLESS(!field.is_repeated(), "field is repeated.");
- if (!key) {
+ if (!key && !inProtoMap) {
key = MakeKey(field);
}