add id field to json