changed json serializes settings to handle arrays