Implemented getJSON function