I am using the CXF rest client which works well for simple data types (eg: Strings, ints). However, when I attempt to use custom Objects I get this:
Exceptio
You can try with mentioning "Accept: application/json" in your rest client header as well, if you are expecting your object as JSON in response.