ask45ru
18 Jun 2012, 12:33 AM
Hi all!
I have a store with a proxy using Json Reader.
Json response looks like:
{"success":true,"items":"{\"count\":2,\"departments\":[{\"id\":1,\"name\":\"\u041c\u043e\u0441\u043a\u0432\u0430\",\"group\":\"group\"},{\"id\":2,\"name\":\"\u0418\u0440\u043a\u0443\u0442\u0441\u043a\",\"group\":\"group\"}]}"}
I need to load a data to the store from "departments" element.
I tried to set reader options:
root: 'items.departments
and
root: 'departments
but it doesn't work.
How can I get access to departments-element?
I have a store with a proxy using Json Reader.
Json response looks like:
{"success":true,"items":"{\"count\":2,\"departments\":[{\"id\":1,\"name\":\"\u041c\u043e\u0441\u043a\u0432\u0430\",\"group\":\"group\"},{\"id\":2,\"name\":\"\u0418\u0440\u043a\u0443\u0442\u0441\u043a\",\"group\":\"group\"}]}"}
I need to load a data to the store from "departments" element.
I tried to set reader options:
root: 'items.departments
and
root: 'departments
but it doesn't work.
How can I get access to departments-element?