util/text/settings: Provide name of the changed property as a parameter.

Also added MarshalJSON.