{"action":"created","issue":{"url":"https://api.github.com/repos/schmittjoh/serializer/issues/549","repository_url":"https://api.github.com/repos/schmittjoh/serializer","labels_url":"https://api.github.com/repos/schmittjoh/serializer/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/schmittjoh/serializer/issues/549/comments","events_url":"https://api.github.com/repos/schmittjoh/serializer/issues/549/events","html_url":"https://github.com/schmittjoh/serializer/issues/549","id":128520594,"number":549,"title":"JsonDeserializationVisitor throw an error in PHP 7","user":{"login":"tiagobrito","id":1071148,"avatar_url":"https://avatars.githubusercontent.com/u/1071148?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagobrito","html_url":"https://github.com/tiagobrito","followers_url":"https://api.github.com/users/tiagobrito/followers","following_url":"https://api.github.com/users/tiagobrito/following{/other_user}","gists_url":"https://api.github.com/users/tiagobrito/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagobrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagobrito/subscriptions","organizations_url":"https://api.github.com/users/tiagobrito/orgs","repos_url":"https://api.github.com/users/tiagobrito/repos","events_url":"https://api.github.com/users/tiagobrito/events{/privacy}","received_events_url":"https://api.github.com/users/tiagobrito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-25T11:52:35Z","updated_at":"2016-05-07T06:42:15Z","closed_at":null,"body":"The `decode` method in `src/JMS/Serializer/JsonDeserializationVisitor.php` throw a \"Could not decode JSON, syntax error - malformed JSON.\" exception in PHP 7 with an empty string. This only happens with PHP 7 due to the BC on `json_last_error()` function.\r\n\r\nCheck this test: https://3v4l.org/eZ7Zv"},"comment":{"url":"https://api.github.com/repos/schmittjoh/serializer/issues/comments/217611668","html_url":"https://github.com/schmittjoh/serializer/issues/549#issuecomment-217611668","issue_url":"https://api.github.com/repos/schmittjoh/serializer/issues/549","id":217611668,"user":{"login":"maennchen","id":333918,"avatar_url":"https://avatars.githubusercontent.com/u/333918?v=3","gravatar_id":"","url":"https://api.github.com/users/maennchen","html_url":"https://github.com/maennchen","followers_url":"https://api.github.com/users/maennchen/followers","following_url":"https://api.github.com/users/maennchen/following{/other_user}","gists_url":"https://api.github.com/users/maennchen/gists{/gist_id}","starred_url":"https://api.github.com/users/maennchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maennchen/subscriptions","organizations_url":"https://api.github.com/users/maennchen/orgs","repos_url":"https://api.github.com/users/maennchen/repos","events_url":"https://api.github.com/users/maennchen/events{/privacy}","received_events_url":"https://api.github.com/users/maennchen/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T06:42:15Z","updated_at":"2016-05-07T06:42:15Z","body":"Why should an empty string not trigger an error? `''` is not a valid JSON.\r\n"}}