{"action":"created","issue":{"url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost/issues/1","repository_url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost","labels_url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost/issues/1/comments","events_url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost/issues/1/events","html_url":"https://github.com/ArtisTechMedia/ccMixterHost/issues/1","id":50416530,"number":1,"title":"API returns broken JSON","user":{"login":"starfrosch","id":9997292,"avatar_url":"https://avatars3.githubusercontent.com/u/9997292?v=4","gravatar_id":"","url":"https://api.github.com/users/starfrosch","html_url":"https://github.com/starfrosch","followers_url":"https://api.github.com/users/starfrosch/followers","following_url":"https://api.github.com/users/starfrosch/following{/other_user}","gists_url":"https://api.github.com/users/starfrosch/gists{/gist_id}","starred_url":"https://api.github.com/users/starfrosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starfrosch/subscriptions","organizations_url":"https://api.github.com/users/starfrosch/orgs","repos_url":"https://api.github.com/users/starfrosch/repos","events_url":"https://api.github.com/users/starfrosch/events{/privacy}","received_events_url":"https://api.github.com/users/starfrosch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2014-11-29T06:10:31Z","updated_at":"2018-03-16T12:20:26Z","closed_at":null,"author_association":"NONE","body":"I request the following data from the API\n\nhttp://ccmixter.org/api/query?f=json&tags=remix&limit=400&sinced=1%20month%20ago\n\nhttp://ccmixter.org/api/query?f=json&tags=remix&limit=100&sinced=1%20week%20ago\n\nWhen I try to decode it with \n$array = json_decode($result, true);\nThe $array is NULL and json_last_error() returns JSON_ERROR_SYNTAX\n\nI could track it down to record number 9, that breaks json_decode\nhttp://ccmixter.org/api/query?f=json&tags=remix&limit=9&sinced=1%20week%20ago\n\nLimited to 8, json_decode is successful.\nhttp://ccmixter.org/api/query?f=json&tags=remix&limit=8&sinced=1%20week%20ago\n\nHere is record number 9\n\n{\"upload_id\" : 48327, \"upload_name\" : \"two turntables [JD mix]\", \"upload_extra\" : {\"usertags\" : \"hip_hop,beats,j_dilla\", \"ccud\" : \"media,remix,bpm_090_095\", \"systags\" : \"non_commercial,audio,mp3,44k,stereo,VBR,audio,mp3,44k,stereo,VBR\", \"featuring\" : \"\", \"bpm\" : 092, \"relative_dir\" : \"content/naotko\", \"nsfw\" : false, \"last_op\" : \"add\", \"num_reviews\" : 1}, \"user_name\" : \"naotko\", \"upload_tags\" : \",media,remix,bpm_090_095,sample,ccplus,non_commercial,audio,mp3,44k,stereo,VBR,hip_hop,beats,j_dilla,\", \"file_page_url\" : \"http://ccmixter.org/files/naotko/48327\", \"user_real_name\" : \"naotko\", \"artist_page_url\" : \"http://ccmixter.org/people/naotko\", \"license_logo_url\" : \"http://ccmixter.org/ccskins/shared/images/lics/small-by-nc-3.png\", \"license_url\" : \"http://creativecommons.org/licenses/by-nc/3.0/\", \"license_name\" : \"Attribution Noncommercial  (3.0)\", \"upload_date_format\" : \"Thu, Nov 27, 2014 @ 4:07 PM\", \"files\" : [{\"file_id\" : 72657, \"file_upload\" : 48327, \"file_name\" : \"naotko_-_two_turntables_JD_mix_.mp3\", \"file_nicname\" : \"mp3\", \"file_format_info\" : {\"media-type\" : \"audio\", \"format-name\" : \"audio-mp3-mp3\", \"default-ext\" : \"mp3\", \"mime_type\" : \"audio/mpeg\", \"sr\" : \"44k\", \"ch\" : \"stereo\", \"ps\" : \"3:18\", \"br\" : \"VBR\"}, \"file_extra\" : {\"sha1\" : \"WCAEHMS42CZLPHVEALUJXK5FVECUKSEY\"}, \"file_filesize\" : \" (5.83MB)\", \"file_order\" : 0, \"file_is_remote\" : 0, \"file_num_download\" : 0, \"download_url\" : \"http://ccmixter.org/content/naotko/naotko_-_two_turntables_JD_mix_.mp3\", \"local_path\" : \"/var/www/ccmixter/content/naotko/naotko_-_two_turntables_JD_mix_.mp3\", \"file_rawsize\" : 6111292}, {\"file_id\" : 72658, \"file_upload\" : 48327, \"file_name\" : \"naotko_-_two_turntables_JD_mix_1.mp3\", \"file_nicname\" : \"Samples - ccPlus\", \"file_format_info\" : {\"media-type\" : \"audio\", \"format-name\" : \"audio-mp3-mp3\", \"default-ext\" : \"mp3\", \"mime_type\" : \"audio/mpeg\", \"sr\" : \"44k\", \"ch\" : \"stereo\", \"ps\" : \"3:18\", \"br\" : \"VBR\"}, \"file_extra\" : {\"ccud\" : \"sample,media,ccplus\", \"type\" : \"bigsummermusicfestsamplesccplus\", \"sha1\" : \"FVMWX5ZIZRCBAWD32W2OEJARVQK4OXYI\"}, \"file_filesize\" : \" (4.65MB)\", \"file_order\" : 1, \"file_is_remote\" : 0, \"file_num_download\" : 0, \"download_url\" : \"http://ccmixter.org/content/naotko/naotko_-_two_turntables_JD_mix_1.mp3\", \"local_path\" : \"/var/www/ccmixter/content/naotko/naotko_-_two_turntables_JD_mix_1.mp3\", \"file_rawsize\" : 4875346}], \"upload_description_plain\" : \"simple classic loop style dedicated to J dilla\"}\n"},"comment":{"url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost/issues/comments/373696908","html_url":"https://github.com/ArtisTechMedia/ccMixterHost/issues/1#issuecomment-373696908","issue_url":"https://api.github.com/repos/ArtisTechMedia/ccMixterHost/issues/1","id":373696908,"user":{"login":"starfrosch","id":9997292,"avatar_url":"https://avatars3.githubusercontent.com/u/9997292?v=4","gravatar_id":"","url":"https://api.github.com/users/starfrosch","html_url":"https://github.com/starfrosch","followers_url":"https://api.github.com/users/starfrosch/followers","following_url":"https://api.github.com/users/starfrosch/following{/other_user}","gists_url":"https://api.github.com/users/starfrosch/gists{/gist_id}","starred_url":"https://api.github.com/users/starfrosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starfrosch/subscriptions","organizations_url":"https://api.github.com/users/starfrosch/orgs","repos_url":"https://api.github.com/users/starfrosch/repos","events_url":"https://api.github.com/users/starfrosch/events{/privacy}","received_events_url":"https://api.github.com/users/starfrosch/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T12:20:26Z","updated_at":"2018-03-16T12:20:26Z","author_association":"NONE","body":"This issue is now open more than a year. Anybody out there?"}}
{"actor":{"display_login":"starfrosch"}}