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

what is the point to use Pascal casing in json to match CLR object's property names? #14623

Closed
hatzhang opened this issue Sep 26, 2019 · 3 comments
Labels
doc-enhancement Pri3 Source - Docs.ms Docs Customer feedback via GitHub Issue
Milestone

Comments

@hatzhang
Copy link

camel casing is default now, so why change it anyway?
isn't that the same to dotnet consumers?
or this is only a demonstration that it can be done?

link


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added the Source - Docs.ms Docs Customer feedback via GitHub Issue label Sep 26, 2019
@Rick-Anderson Rick-Anderson added this to the Backlog milestone Sep 26, 2019
Copy link

I agree with the above commenter. I get that C# still uses PascalCase, but it just seems tacky to push that out through JSON. I suppose it's something that some people might want to do, but I wouldn't suggest that it's something that needs to be done.

Copy link

I don't think this is about which one to use, but rather specifically to fix the "BookName" property, which would not match the original schema otherwise - the example is actually illustrating some useful options to separating C# from JSON representations.

@Rick-Anderson
Copy link
Contributor

Moved to #16196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Pri3 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

5 participants