My JSON Data
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
jQuery code:
$(document).ready(function() {
$("#Button1").click(function() {
var asd = "test";
$.get("CallBack.Aspx", { asd: asd }, function(data) {
$.each(data, function() {
})
})
})
})
I need menuitem
in values how to make ?
"menuitem": [
{ "value": "New", "onclick": "CreateNewDoc()" } ]