ADD getJson method to handle json url request