implemented JSON parsing for url