{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4161","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4161/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4161/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4161/events","html_url":"https://github.com/spring-projects/spring-boot/issues/4161","id":111171621,"number":4161,"title":"JSON Mime Type is missing","user":{"login":"ghostd","id":1098399,"avatar_url":"https://avatars.githubusercontent.com/u/1098399?v=3","gravatar_id":"","url":"https://api.github.com/users/ghostd","html_url":"https://github.com/ghostd","followers_url":"https://api.github.com/users/ghostd/followers","following_url":"https://api.github.com/users/ghostd/following{/other_user}","gists_url":"https://api.github.com/users/ghostd/gists{/gist_id}","starred_url":"https://api.github.com/users/ghostd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghostd/subscriptions","organizations_url":"https://api.github.com/users/ghostd/orgs","repos_url":"https://api.github.com/users/ghostd/repos","events_url":"https://api.github.com/users/ghostd/events{/privacy}","received_events_url":"https://api.github.com/users/ghostd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-13T12:39:54Z","updated_at":"2015-10-19T08:56:48Z","closed_at":null,"body":"Hi,\r\n\r\nMimeMappings does not contain the [standard JSON declaration](http://www.ietf.org/rfc/rfc4627.txt). When my application serves my file.json, no HTTP Content-Type headers are sent. Firefox reads the file but generates a warning \"not well formed\".\r\n\r\nHere is my current workaround:\r\n```\r\n@Component\r\npublic class ServletCustomizer implements EmbeddedServletContainerCustomizer {\r\n\r\n    @Override\r\n    public void customize(ConfigurableEmbeddedServletContainer container) {\r\n        MimeMappings mappings = new MimeMappings(MimeMappings.DEFAULT);\r\n        mappings.add(\"json\", \"application/json\");\r\n        container.setMimeMappings(mappings);\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/149150631","html_url":"https://github.com/spring-projects/spring-boot/issues/4161#issuecomment-149150631","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/4161","id":149150631,"user":{"login":"wilkinsona","id":914682,"avatar_url":"https://avatars.githubusercontent.com/u/914682?v=3","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T08:56:48Z","updated_at":"2015-10-19T08:56:48Z","body":"It's interesting that Tomcat has different defaults in Java code and in web.xml. I'd like to understand that difference and figure out which it makes most sense for us to align with."}}