jQuery and iterating on JSON objects.
        Posted  
        
            by 
                The Devil
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by The Devil
        
        
        
        Published on 2011-01-08T04:02:16Z
        Indexed on 
            2011/01/08
            4:53 UTC
        
        
        Read the original article
        Hit count: 368
        
Hey everybody,
I'm currently trying to figure out how can I iterate over all of the objects in an JSON response. My object may have endless sub objects and they may also have endless sub objects.
{
  "obj1" : {
      "obj1.1" : "test",
      "obj1.2" : {
         "obj1.1.1" : true,
         "obj1.1.2" : "test2",
         "obj1.1.3" : {
             ... // etc
         }
      }
  }
}
I was just wondering if there is a out of the box script that can handle such kind of objects?
Thanks in advance,
The Devil
© Stack Overflow or respective owner