Utility function to print the statistics information for a given table/column in JSON.
Used for debugging the selectivity code.