{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10257","labels_url":"https://api.github.com/repos/laravel/framework/issues/10257/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10257/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10257/events","html_url":"https://github.com/laravel/framework/issues/10257","id":106298654,"number":10257,"title":"\\Illuminate\\Http\\Request fails silently on json decode errors","user":{"login":"aedart","id":1523223,"avatar_url":"https://avatars.githubusercontent.com/u/1523223?v=3","gravatar_id":"","url":"https://api.github.com/users/aedart","html_url":"https://github.com/aedart","followers_url":"https://api.github.com/users/aedart/followers","following_url":"https://api.github.com/users/aedart/following{/other_user}","gists_url":"https://api.github.com/users/aedart/gists{/gist_id}","starred_url":"https://api.github.com/users/aedart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedart/subscriptions","organizations_url":"https://api.github.com/users/aedart/orgs","repos_url":"https://api.github.com/users/aedart/repos","events_url":"https://api.github.com/users/aedart/events{/privacy}","received_events_url":"https://api.github.com/users/aedart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T08:55:35Z","updated_at":"2015-09-14T08:55:35Z","closed_at":null,"body":"In case that a client sends a malformed json string, which cannot be decoded correctly, the `json()` method just ignores it; well... it just ensures that an empty array is being set internally.\r\n\r\nI do find this to be a bit frustrating, because it can be very difficult to debug - unless you know exactly that this json behaviour can happen in the request instance.\r\n\r\n*Possible solution*\r\nCheck the decoded json string for `null` value, and `json_last_error`. If any json error is present, perhaps throw an exception - one that doesn't need to be logged."}}