distinction between id and hex

Add end with { or , for distinction between id and hex