Proposed patch for issue #183
Merge pull request #184 from jsmestad/bugfix/empty-hash-is-bad

Fix for `#to_json` on empty hash creating bad params payload