Following::
var input = // your string var output = $(input).slice(1).map(function(i,el) { var tds = $(el).find("td"); return { "date" : tds.eq(0).text(), "value" : tds.eq(1).text() }; }).get();
... will return an array of objects in this format:
[{"date":"2013-01-01","value":"231.198"}, {"date":"2013-02-01","value":"232.770"}, ... ]
If you want each value
be treated as a number, you can convert it like this:
return { "date" : tds.eq(0).text(), "value" : +tds.eq(1).text() }; // add the unary plus operator ---------------^
Then the result will be:
[{"date":"2013-01-01","value":231.198}, {"date":"2013-02-01","value":232.77}, ... ]
source share