Allow sending json data instead of form encoding

I was testing out your product, but your ruby gem doesn't have a way to send json data. I added that option. I would need it if we decided to go with your product.