code: def test_print_json(self):
      table = Table(self.rows, self.column_names, self.column_types)
  
      old = sys.stdout
      sys.stdout = StringIO()
  
      try:
          table.print_json()
  
          js1 = json.loads(sys.stdout.getvalue())
  
          with open("examples/test.json") as f:
              js2 = json.load(f)
  
          self.assertEqual(js1, js2)
      finally:
          sys.stdout = old
  
file_path: agate/tests/test_table/test_to_json.py
imports: import json
  import os
  import sys
  from io import StringIO
  from agate import Table
  from agate.data_types import Boolean, Date, DateTime, Number, Text, TimeDelta
  from agate.testcase import AgateTestCase
label_desc: Use image node_id 11 for calling the TestJSON obj's underlying member method code with example usage: obj.test_print_json() without return types