{"action":"created","issue":{"url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/36","labels_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/36/comments","events_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/36/events","html_url":"https://github.com/salsify/jsonstreamingparser/issues/36","id":127763497,"number":36,"title":"Error during import of UTF8 files.","user":{"login":"rsanaie","id":1197498,"avatar_url":"https://avatars.githubusercontent.com/u/1197498?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanaie","html_url":"https://github.com/rsanaie","followers_url":"https://api.github.com/users/rsanaie/followers","following_url":"https://api.github.com/users/rsanaie/following{/other_user}","gists_url":"https://api.github.com/users/rsanaie/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanaie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanaie/subscriptions","organizations_url":"https://api.github.com/users/rsanaie/orgs","repos_url":"https://api.github.com/users/rsanaie/repos","events_url":"https://api.github.com/users/rsanaie/events{/privacy}","received_events_url":"https://api.github.com/users/rsanaie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T19:21:23Z","updated_at":"2016-01-20T19:48:14Z","closed_at":null,"body":"When we import a UTF8 file fread starts with reading the BOM signature for the file and it causes an error in parsing the stream with error **Document must start with object or array.**\r\n\r\nI believe the problem is fully answered here and should be a fairly easy fix :smile: \r\n\r\nhttps://stackoverflow.com/questions/9126423/php-fread-function-returning-extra-charactors-at-the-front-on-utf-8-text-files\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/comments/173338409","html_url":"https://github.com/salsify/jsonstreamingparser/issues/36#issuecomment-173338409","issue_url":"https://api.github.com/repos/salsify/jsonstreamingparser/issues/36","id":173338409,"user":{"login":"rsanaie","id":1197498,"avatar_url":"https://avatars.githubusercontent.com/u/1197498?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanaie","html_url":"https://github.com/rsanaie","followers_url":"https://api.github.com/users/rsanaie/followers","following_url":"https://api.github.com/users/rsanaie/following{/other_user}","gists_url":"https://api.github.com/users/rsanaie/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanaie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanaie/subscriptions","organizations_url":"https://api.github.com/users/rsanaie/orgs","repos_url":"https://api.github.com/users/rsanaie/repos","events_url":"https://api.github.com/users/rsanaie/events{/privacy}","received_events_url":"https://api.github.com/users/rsanaie/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T19:48:14Z","updated_at":"2016-01-20T19:48:14Z","body":"Hi Rob,\r\n\r\nThanks for the quick reply. Here's the hexdump of the beginning of the file: \r\n\r\n```\r\n0000000: efbb bf5b 0a20 207b 0a20 2020 2022 6964  ...[.  {.    \"id\r\n0000010: 223a 2033 372c 0a20 2020 2022 6e61 6d65  \": 37,.    \"name\r\n0000020: 223a 2022 4162 6572 6372 6f6d 6269 6520  \": \"Abercrombie \r\n0000030: 4861 7264 7761 7265 2049 6e63 2e22 2c0a  Hardware Inc.\",.\r\n```"}}