complex json
complex json
{"23gjsd91su3guu509o1bchhqms@group.calendar.google.com":{"calendar_id":"23gjsd91su3guu509o1bchhqms@group.calendar.google.com","calendar_title":"#1612 White Quartz Apartment"},"vqbidsn2u4edlvto0frvevk6ig@group.calendar.google.com":{"calendar_id":"vqbidsn2u4edlvto0frvevk6ig@group.calendar.google.com","calendar_title":"#994 Cisco Amber (T2)"},"bi07i6futd90lvq9ba8ufvqdu8@group.calendar.google.com":{"calendar_id":"bi07i6futd90lvq9ba8ufvqdu8@group.calendar.google.com","calendar_title":"#1443. Marley Blue"}}
problem is that the name of the object is dynamic.
thanks
Answers
Should use the formatting when posting data or code, and atleast a half way decent description. Im assuming this is the data for the table.. is it ajax source or just loval json? If its local json, just process it into the proper format yourself, then hand it to DT
DataTables expects an array of information for the table rows - it will not accept an object. You would need to convert your object to an array.
Allan
You could do it in a closure as the value to
data
orajax
though, i believesolved this way http://jsfiddle.net/zbuudydv/1/
There ya go, id throw that function in the
data
value tho, as a closure, easier to maintain, imo