tableAsJSON functionality..