added try/catch blocks for JSON parse errors
direct link to uploaded file