add method to send get request and retrieve JSON data