using getJSON to get json payload