Handle JSON request with Apache Camel
<p>I want to handle an HTTPs request that a 3rd party is doing towards my system. The requests contains a JSON object</p>

<p>I have tried using the Jetty component of Camel but when the 3rd party performs the requests Camel throws the following exception:</p>

<pre><code>org.apache.camel.RuntimeCamelException: Cannot read request parameters due Invalid parameter, expected to be a pair but was {"id":"321","rec":"533","status":"ok"}
</code></pre>

<p>The Jetty endpoint is defined in blueprint as:</p>

<pre><code>&lt;camel:endpoint id="getRequestEndpoint" uri="jetty:{{webServiceProtocol}}://{{jettyIp}}:{{jettyPort}}/getRequest?sslContextParametersRef=sslContextParameters"/&gt;
</code></pre>

<p>Am I missing something or are in a totally wrong path?</p>