code: def toJson(self):
      result_dict = {}
      page_list = []
      for page in self.pages:
          page_list.append(page.toJson())
  
      result_dict["pages"] = page_list
      return result_dict
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/data_types/wiki/wikipedia_pages.py
label_desc: Use image node_id 10 for calling the WikipediaPages obj's underlying member method code with example usage: obj.toJson() and returns: result_dict