{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/4842","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842/events","html_url":"https://github.com/aspnet/Mvc/issues/4842","id":159528196,"number":4842,"title":"[Discussion] MVC now serializes JSON with camel case names by default","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/discussion","name":"discussion","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/18","html_url":"https://github.com/aspnet/Mvc/milestones/Discussions","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/18/labels","id":1254581,"number":18,"title":"Discussions","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":4,"state":"open","created_at":"2015-08-14T02:04:42Z","updated_at":"2016-06-10T00:37:32Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-06-09T23:06:18Z","updated_at":"2016-06-10T13:48:39Z","closed_at":null,"body":"In previous milestones, MVC's JSON serialization used Json.NET's default naming convention. This maintained C# property names in the JSON.\r\n\r\nIn 1.0.0, MVC uses camel case names by default. This matches most JSON naming conventions.\r\n\r\n##### Potential compatibility breaks\r\nApplications which depend on the exact bytes sent over the wire or that include code such as\r\n``` c#\r\ndynamic d = JObject.Parse(body);\r\n```\r\nmay need to be adjusted.\r\n\r\n##### Example\r\n###### Before\r\n``` c#\r\npublic class Person\r\n{\r\n    public int Id { get; set; }\r\n\r\n    public string FullName { get; set; }\r\n}\r\n```\r\nWould serialize to\r\n``` json\r\n{\"Id\":9000,\"FullName\":\"John Smith\"}\r\n```\r\n\r\n###### After\r\nThe same model will serialize to\r\n``` json\r\n{\"id\":9000,\"fullName\":\"John Smith\"}\r\n```\r\nNote the initial lowercase letters."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/225186624","html_url":"https://github.com/aspnet/Mvc/issues/4842#issuecomment-225186624","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842","id":225186624,"user":{"login":"Mike-EEE","id":2931376,"avatar_url":"https://avatars.githubusercontent.com/u/2931376?v=3","gravatar_id":"","url":"https://api.github.com/users/Mike-EEE","html_url":"https://github.com/Mike-EEE","followers_url":"https://api.github.com/users/Mike-EEE/followers","following_url":"https://api.github.com/users/Mike-EEE/following{/other_user}","gists_url":"https://api.github.com/users/Mike-EEE/gists{/gist_id}","starred_url":"https://api.github.com/users/Mike-EEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mike-EEE/subscriptions","organizations_url":"https://api.github.com/users/Mike-EEE/orgs","repos_url":"https://api.github.com/users/Mike-EEE/repos","events_url":"https://api.github.com/users/Mike-EEE/events{/privacy}","received_events_url":"https://api.github.com/users/Mike-EEE/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T13:48:39Z","updated_at":"2016-06-10T13:48:39Z","body":"Buggah... I suck at life, and replied to the wrong thread on #4283. Boh.\r\n\r\nAnyways, I again find myself in the minority here.  I also believe I speak for a lot of the native/Xamarin/enterprise developers that wish to keep consistency between code (C#) and the data that represents that code.\r\n\r\nI would feel better if this change default was hinged to a particular \"style\" setting/attribute somehow, meaning that in native/enterprise applications, PascalCase is the default, and in web applications camelCase is the default."}}
{"actor":{"display_login":"Mike-EEE"}}