I have a couple JSON files in my Amazon S3 bucket which were made public. So I was trying to display the contents of the JSO file using PHP. I used:
$json = file_get_contents($url);
$json = json_decode($json, true);
but the above code gave me a JSON parse error. Can someone please help me how to read this JSON file from my S3 and display it on my front-end?