i have some questions that I want to ask, I building a web site and I send in ajax data and do decode and decode (js to php).
1) I want to ask why we should use in ajax encode and decode on json ?
2) what the json stringify do? I do it like this:
var data = JSON.stringify([category, amount, repeated, note]);
but I not realy understand why I should use this..my freind told me its not secure to send ajax without json encode, is it true?