Home › Forums › JavaScript › serialize 2 dimensional array › Reply To: serialize 2 dimensional array
November 16, 2016 at 12:03 pm
#247931
Participant
Or this way…
var result = '';
a.forEach(function(it) {
result += it.join('&');
});
If I understood that to be intended with “serialization” correctly.
The JSON.stringify()
approach was interesting as well but I stumbled upon the brackets, quotes and commas being quite circumventive to get removed from the string value.