JSON traversal v1

by Damith Nuwan Sampath

JavaScript

var a = 
 {"TEST1":45,"TEST2":23,"TEST3":"DATA1"}

;

$.each (a, function (bb) {
    console.log (bb);
    console.log (a[bb]);
    console.log (a[bb].TEST1);
});

$.each (a, function (b, c) {
    console.log (b);
    console.log (c);
    console.log (c.TEST1);
    
});