You are performing a GET
to your controller, so that controller can only capture data via request parameters. In addition, your getJSON
function is sending all the data as request parameters as well.
Therefore your controller has to capture pF24Values
as a @RequestParam
, not as a @RequestBody
.
If you want to send complex data structures to your controller you need to do a POST
with the JSON as the request body (for instance) - although you can use GET for array data but not the way you are doing it here - each row needs to have a separate request param(e.g. pF24Values:one
and pF24Values:two
, etc - there are a few ways to do this).