fixed JSON url
changed JSON handling