making Set Attribute serialization optional

Leaves default of JSON serialization of objects as-is.