Geovane Krüger Geovane Krüger - 8 months ago 34
Javascript Question

How to remove "" Object / array using jquery

I have the following result of an ajax request



["[1449270000000, 21]", "[1449356400000, 41]", "[1449442800000, 60]",...





I would like to know how to remove "" using jQuery. I've tried several things and I could not.

Answer

What you can try is make a loop on the different element of your ajax reply with .each and for each of them test a JSON.parse(yourstring) it will give you an array for each string.