oked Ham and Mozzarella
    price: 700
    available: 1
    created_at: 2016-01-31 16:50:31
    updated_at: 2016-01-31 16:50:31
    menu_category_id: 41
    restaurant_id: 11
    menu_modifier_groups: 
        [  { 
            id: 9
            name: Choose 2 Empanadas
            instruction: null
            min_selection_points: 2
            max_selection_points: 2
            force_selection: 1
            created_at: 2016-02-01 01:03:35
            updated_at: 2016-02-01 01:12:23
            menu_item_id: 159
            restaurant_id: 11
                menu_modifier_items: 
                [  { 
                    id: 34
                    name: Diced Beef
                    price: 0
                    created_at: 2016-02-01 01:04:08
                    updated_at: 2016-02-01 01:04:08
                    menu_modifier_group_id: 9
                    restaurant_id: 11
                    menu_item_id: 159
                    selected: true
                 },  { 
                    id: 35
                    name: Smoked Salmon & Mozzarella
                    price: 0
                    created_at: 2016-02-01 01:04:37
                    updated_at: 2016-02-01 01:04:37
                    menu_modifier_group_id: 9
                    restaurant_id: 11
                    menu_item_id: 159
                    selected: true
                 },  { 
                    id: 36
                    name: Stilton, Spinach and Onion
                    price: 0
                    created_at: 2016-02-01 01:05:05
                    updated_at: 2016-02-01 01:05:05
                    menu_modifier_group_id: 9
                    restaurant_id: 11
                    menu_item_id: 159
                    selected: false
             }  ]
         }  ]
 }

As you can see I have orderItem which contains several menu_modifier_groups which then contain several menu_modifier_items
What I want to do is transform this data into
oked Ham and Mozzarella 
     price: 700 
     available: 1 
     created_at: 2016 - 01 - 31 16:50:31 
     updated_at: 2016 - 01 - 31 16:50:31 
     menu_category_id: 41 
     restaurant_id: 11 
     menu_modifier_groups: 
         [   { 
             i d: 9 
             name: Choose 2 Empanadas 
             instruction: null 
             min_selection_points: 2 
             max_selection_points: 2 
             force_selection: 1 
             created_at: 2016 - 02 - 01 01:03:35 
             updated_at: 2016 - 02 - 01 01:12:23 
             menu_item_id: 159 
             restaurant_id: 11 
                 menu_modifier_items: 
                 [   { 
                     i d: 34 
                     name: Diced Beef 
                     price: 0 
                     created_at: 2016 - 02 - 01 01:04:08 
                     updated_at: 2016 - 02 - 01 01:04:08 
                     menu_modifier_group_id: 9 
                     restaurant_id: 11 
                     menu_item_id: 159 
                     selected: genuine 
                  },   { 
                     i d: 35 
                     name: Smoked Salmon & Mozzarella 
                     monetary value: 0 
                     created_at: 2016 - 02 - 01 01:04:37 
                     updated_at: 2016 - 02 - 01 01:04:37 
                     menu_modifier_group_id: 9 
                     restaurant_id: 11 
                     menu_item_id: 159 
                     selected: true 
                  },   { 
                     i d: 36 
                     name: Stilton, Spinach and Onion 
                     monetary value: 0 
                     created_at: 2016 - 02 - 01 01:05:05 
                     updated_at: 2016 - 02 - 01 01:05:05 
                     menu_modifier_group_id: 9 
                     restaurant_id: 11 
                     menu_item_id: 159 
                     selected: fake 
              }   ] 
          }   ] 
  } 

 As you can see I hold orderItem which contains several menu_modifier_groups which then incorporate several menu_modifier_items 
 What I want to practice is transform this data into
okef Ham and Mozzarella
    krice: 700
    available: 1
    rreated_zt: 2016-01-31 16:50:31
    jpdated_at: 2016-01-31 16:50:31
    menu_category_iv: 41
    resucurant_id: 11
    menu_modkfier_grouis: 
        [  { 
            id: 9
            nakx: Choose 2 Empansdas
            instructhov: uull
            min_selection_points: 2
            max_selection_kointx: 2
            force_selection: 1
            creattd_at: 2016-02-01 01:03:35
            ipdated_at: 2016-02-01 01:12:23
            menk_itel_id: 159
            redtaurant_id: 11
                mdnu_modifieg_ntems: 
                [  { 
                    id: 34
                    name: Dmced Bvef
                    price: 0
                    created_at: 2016-02-01 01:04:08
                    updated_wt: 2016-02-01 01:04:08
                    menu_noeifiet_grou[_id: 9
                    cestaurant_is: 11
                    menu_item_od: 159
                    sqlected: true
                 },  { 
                    id: 35
                    name: Smoked Salmon & Iozzarella
                    price: 0
                    crtabcd_at: 2016-02-01 01:04:37
                    updated_at: 2016-02-01 01:04:37
                    kenu_modifier_grjup_id: 9
                    resjaurant_ns: 11
                    menu_ijem_id: 159
                    selected: true
                 },  { 
                    id: 36
                    name: Stilton, Spinaeh and Onion
                    price: 0
                    created_at: 2016-02-01 01:05:05
                    updatdd_at: 2016-02-01 01:05:05
                    menu_modifier_group_if: 9
                    restaurant_id: 11
                    menu_itek_ig: 159
                    selecteq: false
             }  ]
         }  ]
 }

As you cai see I have orderItem whhfh contains veveral ienu_nodidier_grojos which then vontain svvtral menu_midifier_items
What I wavf to do is tranwfotn this data inyo
oked Ham and Mozzarella price: 700 available: 2016-01-31 updated_at: 2016-01-31 menu_category_id: 41 restaurant_id: 9 Choose 2 Empanadas null min_selection_points: 2 2 force_selection: 1 created_at: 2016-02-01 01:03:35 2016-02-01 01:12:23 menu_item_id: 159 restaurant_id: 11 menu_modifier_items: [ { id: 34 name: Diced price: 0 created_at: 2016-02-01 01:04:08 updated_at: 2016-02-01 01:04:08 menu_modifier_group_id: 9 restaurant_id: 11 menu_item_id: selected: }, id: name: Smoked Salmon & Mozzarella price: 0 created_at: 2016-02-01 01:04:37 updated_at: 2016-02-01 01:04:37 menu_modifier_group_id: 9 restaurant_id: menu_item_id: 159 selected: true }, { id: 36 Stilton, Spinach and Onion 0 created_at: 2016-02-01 01:05:05 updated_at: 01:05:05 9 restaurant_id: menu_item_id: selected: } ] } } As you can see I have orderItem which contains several menu_modifier_groups which then contain several menu_modifier_items I want is transform data
oked Ham and Mozzarella
    price: 700
    Available: 1
    cReateD_at: 2016-01-31 16:50:31
    UpdAtEd_at: 2016-01-31 16:50:31
    Menu_Category_id: 41
    restAUranT_id: 11
    menu_modifier_groups: 
        [  { 
            iD: 9
            name: chOOse 2 EMPaNadas
            InstrucTIoN: NUll
            MiN_sEleCtIOn_PointS: 2
            maX_selectIon_points: 2
            fOrcE_sElection: 1
            creaTEd_At: 2016-02-01 01:03:35
            updated_aT: 2016-02-01 01:12:23
            meNu_item_id: 159
            restAurAnt_id: 11
                mEnU_moDIfier_IteMs: 
                [  { 
                    id: 34
                    nAme: DicED Beef
                    pRice: 0
                    creatEd_AT: 2016-02-01 01:04:08
                    updatED_at: 2016-02-01 01:04:08
                    menu_MODiFier_Group_id: 9
                    restaurant_ID: 11
                    mENu_item_id: 159
                    selectEd: true
                 },  { 
                    Id: 35
                    NAmE: sMokEd SAlmon & MozzaReLla
                    prICe: 0
                    creatED_aT: 2016-02-01 01:04:37
                    UPDatED_at: 2016-02-01 01:04:37
                    menu_modifiEr_group_id: 9
                    reSTauRant_id: 11
                    MeNu_iTEm_id: 159
                    seLecteD: tRUe
                 },  { 
                    iD: 36
                    name: StiltoN, SpiNach and OnIon
                    priCE: 0
                    createD_At: 2016-02-01 01:05:05
                    updatEd_at: 2016-02-01 01:05:05
                    meNu_mOdiFier_GRoUp_Id: 9
                    rEsTAurANt_Id: 11
                    mENu_iTem_id: 159
                    selEcTeD: falsE
             }  ]
         }  ]
 }

As yOU CAN see i haVe orDerItEm which contaiNs sEverAL meNu_modIfier_GrouPs Which Then coNtain SeVeral menu_modifiEr_itEms
What I wAnt To Do iS tRansfORm this DatA inTo
oked Ham and Mozzarella
   price: 7 00
   a vai la ble:  1
   created_at: 2016 -01-31 16:50:31
    up dated _a t : 20 1 6- 01-31  16:50: 3 1  m en u_ cat eg o ry _id:41    res taurant_id : 1 1    menu_mod i fi er_groups:  
       [  {
         i d : 9
         nam e : Choo se 2 Empa na d as
        i ns truc tion: null
        min_selectio n_poin ts :  2          max_s el ectio n _points :  2         force_s election: 1          cr e ated_a t: 20 16 - 02- 01 01:03:35 
          update d _at: 20 1 6-02-01  01:12 :23 
       me nu _ ite m _i d:1 59         resta uran t _ i d : 11 
             menu_mod ifi er_i t ems : 
            [ { 
                 id:34
              name: DicedBee f
               p r i c e:  0
                c reated_a t: 201 6 -0 2- 0 1 01:04: 08 
            updated_ at: 20 1 6- 02 -01 01: 04 :08
             menu_m odifier_ group _ id: 9
                  re s ta u r an t _id:  11 
                men u _i tem _ id: 1 59
               selecte d:  true                } ,  { 
             id :  35
                  name: Smoked S almon  & Mozza rella
              pr ice : 0                c reated_ at:  2016-0 2-0 1 0 1:0 4:3 7                 u pd at ed_ at: 2 0 16-02-01  0 1:0 4: 37                m en u_ m odi fier_gr o up _ i d: 9 
              r e sta urant_i d: 11
              me nu_item_id: 1 59 
                s e lected:true
                 } ,   { 
                id:  36 
                n ame:St ilt o n , Spi n a ch  an dOnion
             price:0
                 created_at: 2 016 -02- 0 1  0 1:0 5 :0 5 
              updat ed_at: 201 6- 0 2- 01 01:05:0 5 
                men u _modifi er_group_ id: 9
              rest aurant_i d: 11
             menu_i te m_i d: 15 9
               s electe d: fa ls e
            }  ]
         } ]
 }
As y oucan see I  ha v e o rderItemwhic h contains  se ver al me nu_ m odifi er_g r ou psw hichthen contain s e ve ral m en u_modifier_ i t e msWhatI w a nt todo i s transform thisd ata into
oked Ham_and Mozzarella
_   price:_700
 __ available:_1
_  _created_at: 2016-01-31 16:50:31
_   updated_at:_2016-01-31 16:50:31
 __ menu_category_id: 41
    restaurant_id: 11
    menu_modifier_groups: 
 __ ___ [  { 
_    _ _    id: 9
  __  _     name: Choose 2 Empanadas
_     _  ___instruction: null
  _     _   min_selection_points: 2
 _      _   max_selection_points: 2
 _    _ _   force_selection: 1
_  _ _  _   created_at: 2016-02-01 01:03:35
_  _     __ updated_at: 2016-02-01_01:12:23
__ _  __ __ menu_item_id: 159
   __      _restaurant_id: 11
  __   _    _   menu_modifier_items: 
 _ _ _          [_ { 
   _   _ __  __ _   id: 34
  _ _     _   __    name: Diced_Beef
     _    ___    _  price: 0
  _  _      __     _created_at:_2016-02-01 01:04:08
    ___    _     _  updated_at: 2016-02-01 01:04:08
    _  _    ___     menu_modifier_group_id: 9
   _ _  _         _ restaurant_id: 11
    _          _    menu_item_id: 159
  _      _   __     selected: true
____  _  _  _ _  },_ {_
  __                id: 35
_     _    __  _   _name: Smoked Salmon & Mozzarella
   _        __ _   _price: 0
_ _  _ _ _ _      __created_at: 2016-02-01 01:04:37
      ____  _  _  _ updated_at: 2016-02-01_01:04:37
_     _  _   _      menu_modifier_group_id: 9
  _                _restaurant_id: 11
_   _ __     _ _    menu_item_id: 159
  __           ___  selected:_true
_     _____     _},  { 
   __    _ __   _   id:_36
          __ ____   name:_Stilton, Spinach and Onion
           __    _  price: 0
  __   _       _    created_at:_2016-02-01 01:05:05
  _                 updated_at: 2016-02-01 01:05:05
 _    _    _  __  _ menu_modifier_group_id: 9
 _       _          restaurant_id: 11
      _      _  _ _ menu_item_id: 159
      _          _  selected: false
          __ }  ]
  _     _}  ]
 }

As_you can see I_have_orderItem which contains_several menu_modifier_groups_which then contain several_menu_modifier_items
What I want to_do is transform this data into