Is it possible for the Knockout.js Mapping plugin to access json nested data or can it only find the first level data?
If the mapping plugin cannot access nested data is there another solution?
In my example, "Number" is mapping correctly but "DueDate" will not map.
// json with nested data
{
"Level1":[
{
"Level2":{
"DueDate":"\/Date(1362124800000)\/",
},
"Number":5499
},
}
// Here's my data model - I need to map the "DueDate" observable.
var viewModel;
$.getJSON('/myJsonData', function (data) {
viewModel = ko.mapping.fromJS(data);
ko.applyBindings(viewModel);
});