Get rid of JsonClientDelegate as it adds very little value

Simplify error checking and use standard exception class