fix issue of getting data
basic implementation on the json response