Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# JsonFormatter does not have a preservingProtoFieldNames method #6299

Closed
fractus opened this issue Jun 23, 2019 · 0 comments · Fixed by #6307
Closed

C# JsonFormatter does not have a preservingProtoFieldNames method #6299

fractus opened this issue Jun 23, 2019 · 0 comments · Fixed by #6307
Assignees

Comments

@fractus
Copy link

fractus commented Jun 23, 2019

What language does this apply to?
If it's a proto syntax change, is it for proto2 or proto3?
If it's about generated code change, what programming language?
C#, Proto3

Describe the problem you are trying to solve.
The JsonFormatter does not have a preservingProtoFieldNames method like Java; see JsonFormat.Printer

Describe the solution you'd like
Adding the method, like in Java; simliar issue #2029

Describe alternatives you've considered
None

Additional context
Add any other context or screenshots about the feature request here.
Example:

message FullName {
  string first_name = 1;
  string last_name = 2;
}
var name = new FullName {FirstName = "John", LastName = "Doe"};
var jsonName = JsonFormatter.Default.Format(name);
Console.Out.WriteLine(jsonName);

Output is:

{ "firstName": "John", "lastName": "Doe" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants