updating json structure with task id and reference to put against