Show the object using JSON when there is an exception thrown.
Merge pull request #13 from mpelikan/show_object

Show the object using JSON when there is an exception thrown.