Unified way to set json object, setter methods for optional push attributes