for sailthru/sailthru-python-client#40 to better check the json where ne...

...eded

Also adding tests to deal with invalid json, which is what the JSONDecoder is supposed to be checking.