Consuming JSON object in Jersey service
As already suggested, changing the @Consumes Content-Type to text/plain will work, but it doesn’t seem right from an REST API point of view. Imagine your customer having to POST JSON to your API but needing to specify the Content-Type header as text/plain. It’s not clean in my opinion. In simple terms, if your API accepts … Read more