Passing table parameters as a json object

Passing table parameters as a json object

paopao Posts: 9Questions: 0Answers: 0
edited November 2013 in General
Hi can anyone help me with this? It looks like when the table makes an ajax request it sends its parameters such as the search fields, sorting etc as a standard POST.

Is it possible to send the data as json and the parameters as a json object so that I can just parse them with Jackson into the corresponding java object?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > It looks like when the table makes an ajax request it sends its parameters such as the search fields, sorting etc as a standard POST.

    If you enable server-side processing ( bServerSide ) then yes it will.

    > Is it possible to send the data as json and the parameters as a json object so that I can just parse them with Jackson into the corresponding java object?

    You'd need to use fnServerData or fnServerParams to modify the data object in the request into the format you want.

    Allan
This discussion has been closed.