title: Nested JSON arrays and Knockout observableArray
body: <p>I need bind this JSON array to my ViewModel. There is no errors, just data did not binded.</p>
  
  <pre><code>[
      [
          {
              "FlightID": "565",
              "FlightNumber": "731",
              "CityFromID": "1",
              "CityFromCode": "MOW",
              "CityToID": "19",
              "CityToCode": "BCN",
              "AirportFromCode": "DME",
              "AirportFromName": null,
              "AirportToCode": "BCN",
              "AirportToName": null,
              "DepartureDate": "20150320",
              "DepartureTime": "17:00",
              "ArrivalDate": "20150320",
              "ArrivalTime": "21:00",
              "Price": "350",
              "Currency": "€",
              "AirServiceID": "89",
              "AirCraft": "Boeing",
              "AirlineName": "TRANSAERO",
              "AirlineCode": "UN",
              "PackageID": "232",
              "CityFromName": "Москва",
              "CityToName": "Барселона",
              "TariffName": null,
              "FinalPrice": 700
          },
          {
              "FlightID": "566",
              "FlightNumber": "732",
              "CityFromID": "19",
              "CityFromCode": null,
              "CityToID": "1",
              "CityToCode": null,
              "AirportFromCode": "BCN",
              "AirportFromName": null,
              "AirportToCode": "DME",
              "AirportToName": null,
              "DepartureDate": "20150321",
              "DepartureTime": "07:00",
              "ArrivalDate": "20150321",
              "ArrivalTime": "11:00",
              "Price": "350",
              "Currency": "€",
              "AirServiceID": "89",
              "AirCraft": "Boeing",
              "AirlineName": "TRANSAERO",
              "AirlineCode": "UN",
              "PackageID": "232",
              "CityFromName": "Барселона",
              "CityToName": "Москва",
              "TariffName": null,
              "FinalPrice": 700
          }
      ],
      [
          {
              "FlightID": "563",
              "FlightNumber": "2639",
              "CityFromID": "1",
              "CityFromCode": "MOW",
              "CityToID": "19",
              "CityToCode": "BCN",
              "AirportFromCode": "SVO",
              "AirportFromName": null,
              "AirportToCode": "BCN",
              "AirportToName": null,
              "DepartureDate": "20150320",
              "DepartureTime": "11:50",
              "ArrivalDate": "20150320",
              "ArrivalTime": "19:15",
              "Price": "350",
              "Currency": "€",
              "AirServiceID": "89",
              "AirCraft": "Boeing",
              "AirlineName": "Aeroflot-Russian International AirLines",
              "AirlineCode": "SU",
              "PackageID": "232",
              "CityFromName": "Москва",
              "CityToName": "Барселона",
              "TariffName": null,
              "FinalPrice": 700
          },
          {
              "FlightID": "564",
              "FlightNumber": "2640",
              "CityFromID": "19",
              "CityFromCode": null,
              "CityToID": "1",
              "CityToCode": null,
              "AirportFromCode": "BCN",
              "AirportFromName": null,
              "AirportToCode": "SVO",
              "AirportToName": null,
              "DepartureDate": "20150321",
              "DepartureTime": "11:50",
              "ArrivalDate": "20150321",
              "ArrivalTime": "14:50",
              "Price": "350",
              "Currency": "€",
              "AirServiceID": "89",
              "AirCraft": "Boeing",
              "AirlineName": "Aeroflot-Russian International AirLines",
              "AirlineCode": "SU",
              "PackageID": "232",
              "CityFromName": "Барселона",
              "CityToName": "Москва",
              "TariffName": null,
              "FinalPrice": 700
          }
      ]
  ]
  </code></pre>
  
  <p>This is how I call:</p>
  
  <pre><code>self.getprices = function () {
              $.ajax({
                  url: "@Url.Content("~/Home/GetFlights")",
                  data: $("form").serialize(),
                  type: "post",
                  cache: false,
                  dataType: "json"
              })
                  .done(function (result) {
                      if (result === "Запрос не вернул результатов.") {
                          $("#errlbl").hide();
                          $("#errormsg").text(result);
                          $("#modalerror").modal();
                      } else {
                          self.prices(ko.toJSON(result));
                          ko.mapping.fromJS(result, {}, self.prices());
                      }
                  })
                  .fail(function (xhr, ajaxOptions, thrownError) {
                      console.log(xhr.responseText);
                  });
          };
  </code></pre>
  
  <p>And this is markup:</p>
  
  <pre><code>&lt;div class="row" id="searchresult"&gt;
              &lt;div class="col-md-6" id="flightsfrom"&gt;
                  &lt;table class="table table-striped"&gt;
                      &lt;tbody data-bind="foreach: flightsfrom"&gt;
                          &lt;tr&gt;
                              &lt;td data-bind="text: ko.utils.unwrapObservable($data.CityFromName) + ' ' + ko.utils.unwrapObservable($data.AirportFromCode) + ' - ' + ko.utils.unwrapObservable($data.CityToName) + ' ' + ko.utils.unwrapObservable($data.AirportToCode)"&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td data-bind="text: 'Вылет: ' + ko.utils.unwrapObservable($data.DepartureTime) + ' Прилет: ' + ko.utils.unwrapObservable($data.ArrivalTime)"&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td data-bind="text: ko.utils.unwrapObservable($data.AirlineName)"&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td data-bind="text: ko.utils.unwrapObservable($data.AirlineCode) + ' ' + ko.utils.unwrapObservable($data.FlightNumber)+ '. Тип ВС: ' + ko.utils.unwrapObservable($data.AirCraft)"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;input type="button" data-bind="value: 'Купить за : ' + ko.utils.unwrapObservable($data.FinalPrice) + ' ' + ko.utils.unwrapObservable($data.Currency), click: $root.bookflight.bind($data, $data.AirlineCode)" class="btn btn-warning" name="booking" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;/tbody&gt;
                  &lt;/table&gt;
              &lt;/div&gt;
              &lt;div class="col-md-6" id="flightsto"&gt;
                  &lt;table class="table table-striped"&gt;
                      &lt;tbody data-bind="foreach: flightsto"&gt;
                          &lt;tr&gt;
                              &lt;td data-bind="text: ko.utils.unwrapObservable($data.CityFromName) + ' ' + ko.utils.unwrapObservable($data.AirportFromCode) + ' - ' + ko.utils.unwrapObservable($data.CityToName) + ' ' + ko.utils.unwrapObservable($data.AirportToCode)"&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td data-bind="text: 'Вылет: ' + ko.utils.unwrapObservable($data.DepartureTime) + ' Прилет: ' + ko.utils.unwrapObservable($data.ArrivalTime)"&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td data-bind="text: ko.utils.unwrapObservable($data.AirlineName)"&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td data-bind="text: ko.utils.unwrapObservable($data.AirlineCode) + ' ' + ko.utils.unwrapObservable($data.FlightNumber)+ '. Тип ВС: ' + ko.utils.unwrapObservable($data.AirCraft)"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;h1&gt;&lt;/h1&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;/tbody&gt;
                  &lt;/table&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>I really do not have idea how to get all parts work together.</p>