Issue 218 - Bug - Change the data sent to restfulAPI to JSON.

This is a pull-request for https://github.com/evanxd/travis-reporter/issues/218.