I wondered if someone could answer a question for me as I dont quite understand why I needed to read a json object from the request input stream when I passed one to a spring controller manually.
Normally I use a json-rpc framework and it handles everything for me so I hadnt actually had to do this manually until now. Everything works ok but what I dont understand is why there was nothing in the request like when you post a form, and instead I had to use this code to map my object to Jackson:
BufferedInputStream bis = new BufferedInputStream(request.getInputStream());
ChartParameters chartParameters = mapper.readValue(bis, ChartParameters.class);
I would just like to understand why I needed to read in the input stream and pass this to jackson instead of being able to get a value as a string which I first thought I would have to do.
Thanks in advance for any helpful answers.