hi all,
I have a xml file:
<myitems>
<items>
<item>
<firstname> shahrzad </firstname>
</item>
<item>
<firstname> shahab </firstname>
</item>
</items>
</myitems>
Now I want to use context switch to return json >> (
->addActionContext('index', 'json')) ----->> json go to extjs to show in a
grid...
ok. in index action, I get xml file.. convert it to json by contextSwitch,
but json file have some fields that I don't need them and must delete to
show correctly...
for example here how to get rid of items, item,.. in json file, I just want
to return {[{firstname:'shahrzad'},{firstname:'shahab'}]} in json???!!
Thanks,
Shahrzad