jQWidgets Forums
Forum Replies Created
-
Author
-
January 31, 2013 at 1:42 pm in reply to: Nested JSON – Array inside Nested JSON – Array inside #14433
http://i46.tinypic.com/314axyw.jpg
please see this link, there You have a prtscreen from firebug showing the json message hierarchy. What I am asking for are those three elements and getting access to them. I can access schedule hours by mapping schedule>scheduleDayses>0>schedulehourses>0 but I am getting access only for the 0 element (0 is an example ofcourse it also works next array elements) but what I want is to call whole array elements in this case scheduledayses from 0 to 2 and schedulehourses from 0 to 1. Please post me a code how to do it ( I mean those { “field_name” map: “mapping>mapping”} and what value is in root: “value” attribute.
Thanks for help, I really appriciate it.
January 30, 2013 at 6:14 pm in reply to: Nested JSON – Array inside Nested JSON – Array inside #14374First of all, thank You for the fast response. Good to know that You support Your product community
(forgive me my english, not my native)
Yes obviously I’ve read the doc but I didnt understood it very well. I know I just need to get the idea so maybe You could clearly explain me on my simple example. Lets say that I have a Json with this hierarchy:
schedule –
|
|-> scheduleId = 8
year = 2012
scheduleDayses –
|
|-> 0
1
2
|
|-> scheduleDayId = 2
day = 17
scheduleHours –
|-> 0
1 –
|->
scheduleHourId = 1
hour = 15:00so there are 2 arrays: scheduleHours nested in scheduleDay ( 2 elements) and scheduleDays array nested in schedule (3 elements).
Could you, please, paste me code with {name: “” map:” … > … > … >”} and root: “” filled in? Because I have completly no idea how to fits this into mapping and after that which element need to be found in root attribute. Thank You very much for reply!
-
AuthorPosts