added ability to decode JSON for array default values in setDefaults()