skbio.table.Table.to_json#

Table.to_json(generated_by, direct_io=None, creation_date=None)[source]#

Returns a JSON string representing the table in BIOM format.

Parameters:
generated_bystr

a string describing the software used to build the table

direct_iofile or file-like object, optional

Defaults to None. Must implementing a write function. If direct_io is not None, the final output is written directly to direct_io during processing.

creation_datedatetime, optional

If provided, use this datetime as the creation date on write.

Returns:
str

A JSON-formatted string representing the biom table