add table json api for better table display.