Update json format.

From [{...}, {...}, {...},...] to {'date':'2012-06-11','data':[{},{},{},...]}