I have json returning:
{
"school":
{
"students":[{"firstName":"John", "lastName":"Doe"},"firstName":"Jane", "lastName":"Doe"}]
}
}
Then in my markup I have
<ul data-bind="foreach: school.students">
<li><span data-bind="text: firstName"></span><span data-bind="text: lastName"></span></li>
</ul>
school.students must not be right since it isn't working. Can someone help me with the syntax?