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.
I'm not sure it is necessary to convert the code back from the dictionary to json - I'm not sure why that was added.   I'll look at the get_body call again and make changes to this PR this morning.