How to ignore a field? c.JSON

Comment From: easonlin404

Would you help provide sample code to demonstrate issue?

Comment From: syssam

Field int json:"-"

Comment From: J-Nokwal

but this will ignore the field every time, I want to retain it in some cases.