set JsonIgnore on state