Implement to_hash and its alias to_h

Stripe gem has `to_json` which returns the original JSON like string.
This method is good replacement of that.