in reply to Re^3: Read JSON data from a form
in thread Read JSON data from a form

OK, I still need to use "$q->param(" for each value I am sending from the form, so whats the point in using JSON? Can you show any example based on this question? Thanks!

Replies are listed 'Best First'.
Re^5: Read JSON data from a form
by Corion (Patriarch) on Dec 29, 2013 at 19:38 UTC

    If you want to send JSON, you need to send JSON. This means not using jQuery.serialize() but JSON.stringify(). I recommend that you find out why you want to send JSON first before trying it out. Then I recommend you actually learn about how to use JSON on both sides of the communication, and how to make sure that you are sending what you think you want to send.

    I won't write any code for you, as Google is aplenty with examples. For example this question from two years ago seems to be very close to your problem.

    But your problem seems to mainly be on the Javascript side of things, which is not very close to the topic of this site.