PDA

View Full Version : Handling Complex JSON response with Store ? JsonStore? Multiple stores?



Benew
14 Oct 2011, 3:04 AM
Hi! First post for me!
I'm trying to display a custom image gallery with upload functionality, image versioning, comments, sub-folders aso...
This is my server json response (an example):
{success: true, data: {

folder1:{

image_1:{

id: 1,

name: image1,
versions: [{

fileName: image_01.jpg,
comments: [

{title: "", msg: ""},
{title: "", msg: ""},
{title: "", msg: ""}

]},{

fileName: image_02.jpg,
comments: [

{title: "", msg: ""},
{title: "", msg: ""},
{title: "", msg: ""}

]}

]

}

}
}}

I just don't know how to deal with the data with a simple store... Need advice please!