getting comment results to return json data