Index: third_party/protobuf/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs b/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs |
index ed15d0e191227bfb4fec0463fd0dff2e310a5d4e..6c6f6ee05ff0b3b6d3672b16f531c26cb592d599 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs |
+++ b/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs |
@@ -97,7 +97,7 @@ namespace Google.Protobuf.Reflection |
// We could trust the generated code and check whether the type of the property is |
// a MapField, but that feels a tad nasty. |
this.propertyName = propertyName; |
- JsonName = Proto.JsonName == "" ? JsonFormatter.ToJsonName(Proto.Name) : Proto.JsonName; |
+ JsonName = Proto.JsonName == "" ? JsonFormatter.ToCamelCase(Proto.Name) : Proto.JsonName; |
} |