I am new to javascript and I am trying to parse and manipulate the data below but not too sure how to go about it. Can anyone help please?
JSON Data
{
"2009-01": {
"bbcfour": 324,
"bbcnews24": 1075,
"bbcone": 940,
"bbcthree": 441,
"bbctwo": 1040,
"cbbc": 898,
"cbeebies": 1343
},
"2009-02": {
"bbcfour": 295,
"bbcnews24": 958,
"bbcone": 904,
"bbcthree": 434,
"bbctwo": 1038,
"cbbc": 793,
"cbeebies": 1246
}}
JavaScript
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-language" content="en" />
<meta http-equiv="Content-Type" content="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link href="main.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="jquery-2.1.1.js"></script>
<script>
$.getJSON('data.json', function (data) {
console.log(data);
});
</script>
</body>
</html>