Improve JSON parsing from URL reliability