I have an array that looks something like this
[[1,2,3],[1,2,3]]
Because of the way it is being received (via ajax) it is being read as a string instead of an array
using .split(',') doesn't work here.
console.log shows it as [[1,2,3],[1,2,3]] so I know the data is going through, however if I were to put the array directly in the page it shows properly as array array
This is the ajax with the recommendation given below. It still comes as plaintext.
$.ajax({
url: "file.php" + "?param=" + param,
type: "POST",
data: 'data',
datatype: 'json',
success: function (data) {
object = JSON.parse(data);
filters();
}
})