{"action":"closed","issue":{"url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/44","repository_url":"https://api.github.com/repos/salsify/jsonstreamingparser","labels_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/44/comments","events_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/44/events","html_url":"https://github.com/salsify/jsonstreamingparser/issues/44","id":145203117,"number":44,"title":"whitespace at the beginning of the file","user":{"login":"Nexucis","id":4548045,"avatar_url":"https://avatars.githubusercontent.com/u/4548045?v=3","gravatar_id":"","url":"https://api.github.com/users/Nexucis","html_url":"https://github.com/Nexucis","followers_url":"https://api.github.com/users/Nexucis/followers","following_url":"https://api.github.com/users/Nexucis/following{/other_user}","gists_url":"https://api.github.com/users/Nexucis/gists{/gist_id}","starred_url":"https://api.github.com/users/Nexucis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nexucis/subscriptions","organizations_url":"https://api.github.com/users/Nexucis/orgs","repos_url":"https://api.github.com/users/Nexucis/repos","events_url":"https://api.github.com/users/Nexucis/events{/privacy}","received_events_url":"https://api.github.com/users/Nexucis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-01T14:57:14Z","updated_at":"2016-04-02T17:37:31Z","closed_at":"2016-04-02T17:37:31Z","body":"hi,\r\nFirst, thank you very much for your powerful JSON parser.\r\nAfter few moments using your parser, i found that a whitespace at the beginning of the file raise an exception (`JStreamingParser line 337 $this->throwParseError(\"Document must start with object or array.\"`). \r\nIt was quite annoying in my use case. As an hotfix, I have removed the test : \r\n` this->state === self::STATE_START_DOCUMENT at line 188 in JStreamingParser`\r\nBut I'm not sure this is the best way to fix my problem.\r\nWhat do you think about that? \r\n\r\nThanks again for your work. "}}