<pre data-bind="text: ko.toJSON($data, null, 2)"></pre>
<ul data-bind="foreach: arrData" >
<li>
<span data-bind="text: name"></span>
</li>
</ul>
The structure is like $data.arrData which arrData is an observablearray. I modify the contents like this:
arrData().splice(0, 1, ko.toJS(data.selectedData));
The $data variable does update but not the observableArray. But if I insert in the array in the beginning then the old value shows, but not the new one.