PDA

View Full Version : JSON navigation for grid



env0ke
19 Aug 2011, 12:41 AM
Hi all :)

I write REST API and his return json format. For example:

[
{
"first_name": "John",
"last_name": "Smith",
"location": {
"country": "Canada",
"post_code": "12345"
}
}
]
How i can navigate to "country" and "post_code" in my Grid (or model for Store)? If i write name for field "location.country" or "location['country']" id don't work. Sorry of my bad english. /:)

env0ke
19 Aug 2011, 2:59 AM
Promlem solved. Use "mapping" feature in my store.