I am facing a weird problem with file_get_contents and decoding to json the result. I have to tell you that this code was fully functional in other server.
Try to give JSON URL in the http://jsonlint.com/ and than copy the response and paste it in a file with BOM disabled you will notice that there is a strange small line in the beginning before the opening { bracket which is causing the issues