suggest how to add a asterisk mark in column of the header

Hi team

How to add a asterisk mark in column of the header,
i have a one json property like (mandatory:“true”;)or(mandatory:“false”;),
if mandatory:“true” means (asterisk mark) want to be add on header of the column

Please help me on implementing this logic.

Thanks in advance

Regards
Deepak