code: def list_benchmarks(root, fp):
      
      update_sys_path(root)
  
      # Streaming of JSON back out to the master process
  
      fp.write('[')
      first = True
      for benchmark in disc_benchmarks(root):
          if not first:
              fp.write(', ')
          clean = dict(
              (k, v) for (k, v) in benchmark.__dict__.items()
              if isinstance(v, (str, int, float, list, dict, bool)) and not
                 k.startswith('_'))
          json.dump(clean, fp, skipkeys=True)
          first = False
      fp.write(']')
docs: List all of the discovered benchmarks to fp as JSON.