docstr: Map stats information into a json object
  
  Returns:
      A json that represents frequency count and total count
code: def to_json(self) -> Dict:
      """
      Map stats information into a json object
  
      Returns:
          A json that represents frequency count and total count
      """
  
      json_obj = dict()
      json_obj[STATSKEY.TOTAL_COUNT] = self._total_count
      json_obj[STATSKEY.DISTRIBUTION] = self._frequency_count
      json_obj[STATSKEY.FIELDS] = self._resolution_list
      return json_obj
  
file_path: contextual-ai/xai/data/explorer/datetime/datetime_stats.py
imports: from typing import Dict, List
  from xai.data.abstract_stats import AbstractStats
  from xai.data.constants import STATSKEY
  from xai.data.exceptions import InvalidTypeError, InconsistentSize
label_desc: Use image node_id 6 for calling the DatetimeStats obj's underlying member method code with example usage: obj.to_json() and returns: json_obj