Enure that json is submitted when posting to ripple

I've encountered the problem with posting the hash when testing some payments.
The fix is to convert the arguments to json before sending.

Hash#to_json comes from rest-client