Added support for JSON requests in setBody. Issue #2