I have a data set as below:
data = '{"a":1,"b":2,"c":3},{"a":4,"b":5,"c":6},{"a":7,"b":8,"c":9}';
I am trying to make a function with the data set as its parameter, but the parameter wouldn't be read. Here is what I did:
function add(data) { alert(data); } add(data);
I only get [object Object],[object Object] ... What's the problem here? Thanks.