I think that if you swap it to 
```ruby
:data => {: port => .., :password => ..., :encrypt => false} 
```
It should work (as it would be converted to json automatically, but you should double check :)