code: def to_json(self) -> List[Dict]:
      json_obj = dict()
      json_obj[STATSKEY.TOTAL_COUNT] = self.total_count
      json_obj[STATSKEY.DISTRIBUTION] = list()
      for feature_name, count in self.column_stats.items():
          json_column_obj = dict()
          json_column_obj["field"] = feature_name
          json_column_obj["count"] = count
          json_obj[STATSKEY.DISTRIBUTION].append(json_column_obj)
  
      return json_obj
  
file_path: contextual-ai/xai/data/validator/validation_stats.py
imports: from typing import List, Dict
  from xai.data.abstract_stats import AbstractStats
  from xai.data.constants import STATSKEY
label_desc: Use image node_id 3 for calling the ValidationStats obj's underlying member method code with example usage: obj.to_json() and returns: json_obj