I have to send a 2-dimensional array (along with several other variables) to PHP using jQuery.ajax()
. I believe my options are:
- Serialize to json with JSON-js
- Send both arrays as csv strings and recompile on the other side.
My questions are:
A. Is there anything wrong with option #2 if I'd prefer not to include another library for a small function? B. Are there other options besides options #1 and #2?
Thanks!