convert clickInfo to json before posting via AJAX