[jQuery] Re: Question in JSON

2009-05-05 Thread Dman
That works tyvm :) On May 5, 1:25 am, MorningZ wrote: > if you had: > > var json = {"4":{"6":"1"},"3":{"1":"1","2":"1"}} > > and this div: > > > > then this code: > > $.each(json, function(Parent, Values) { >        $("#Results").append("Parent: " + Parent + ""); >        $.each(values, functio

[jQuery] Re: Question in JSON

2009-05-04 Thread MorningZ
if you had: var json = {"4":{"6":"1"},"3":{"1":"1","2":"1"}} and this div: then this code: $.each(json, function(Parent, Values) { $("#Results").append("Parent: " + Parent + ""); $.each(values, function(key, val) { $("#Results").append("-- Key: " + key + ", Value: