Parent keys are the keys your item data is nested under. Parent keys are optional depending on the structure of you data.
Parent Keys
Items
is the parents key in this example.
array(
'Items' => array(
array(
'ttile' => 'My Product Title',
'desc' => 'My product description'
),
array(
'ttile' => 'My Product 2 Title',
'desc' => 'My product 2 description'
)
)
);
No Parent Keys
This exmaple has no parent keys.
array(
array(
'ttile' => 'My Product Title',
'desc' => 'My product description'
),
array(
'ttile' => 'My Product 2 Title',
'desc' => 'My product 2 description'
)
);
Multiple Parent keys
To access Items
use Results.Items
as the parent keys.
array(
'Results' => array(
'Items' => array(
array(
'ttile' => 'My Product Title',
'desc' => 'My product description'
),
array(
'ttile' => 'My Product 2 Title',
'desc' => 'My product 2 description'
)
)
)
);