code: def tojsonarrays(table, source=None, prefix=None, suffix=None,
                   output_header=False, *args, **kwargs):
      
  
      if output_header:
          obj = list(table)
      else:
          obj = list(data(table))
      _writejson(source, obj, prefix, suffix, *args, **kwargs)
docs: Write a table in JSON format, with rows output as JSON arrays. E.g.::
  
          >>> import petl as etl
          >>> table1 = [['foo', 'bar'],
          ...           ['a', 1],
          ...           ['b', 2],
          ...           ['c', 2]]
          >>> etl.tojsonarrays(table1, 'example.json')
          >>> # check what it did
          ... print(open('example.json').read())
          [["a", 1], ["b", 2], ["c", 2]]
  
      Note that this is currently not streaming, all data is loaded into memory
      before being written to the file.