add id column to json index attributes