Does anyone know how I can parse a JSON response into a structure like this?
   [
  {
    "iD": 2,
    "OrderList": [
      {
        "bidPrice": 0,
        "iD": 0,
        "name": "Name",
        "price": 10,
        "resteurant": "Restaurant"
      },
      {
        "bidPrice": 0,
        "iD": 0,
        "name": "Something",
        "price": 20,
        "resteurant": "La Place"
      }
],
    "owner": "Tom"
  }
]
I used json2ts to create these two structures:
  import {OrderList} from "./OrderList.ts";
import {Injectable} from  "@angular/core";
@Injectable()
export interface OrderBasket {
    iD: number;
    OrderList: OrderList[];
    owner: string;
}
and
import {Injectable} from  "@angular/core";
@Injectable()
export interface OrderList {
    bidPrice: number;
    iD: number;
    name: string;
    price: number;
    resteurant: string;
}
I make a call to the server and subscribe, but i cannot get this structure. Can anyone help ?
 
     
    