1var jsonPerson = '{"first_name":"billy", "age":23}';
2var personObject = JSON.parse(jsonPerson); //parse json string into JS object
1var json_data = {"2013-01-21":1,"2013-01-22":7};
2var result = [];
3
4for(var i in json_data)
5 result.push([i, json_data [i]]);
6
7
8var data = new google.visualization.DataTable();
9data.addColumn('string', 'Topping');
10data.addColumn('number', 'Slices');
11data.addRows(result);
12