add id and name to json