pandas.DataFrame.to_json — pandas 0.16.2 documentation (original) (raw)

path_or_buf : the path or buffer to write the result string

if this is None, return a StringIO of the converted string

orient : string

date_format : {‘epoch’, ‘iso’}

Type of date conversion. epoch = epoch milliseconds,iso` = ISO8601, default is epoch.

double_precision : The number of decimal places to use when encoding

floating point values, default 10.

force_ascii : force encoded string to be ASCII, default True.

date_unit : string, default ‘ms’ (milliseconds)

The time unit to encode to, governs timestamp and ISO8601 precision. One of ‘s’, ‘ms’, ‘us’, ‘ns’ for second, millisecond, microsecond, and nanosecond respectively.

default_handler : callable, default None

Handler to call if object cannot otherwise be converted to a suitable format for JSON. Should receive a single argument which is the object to convert and return a serialisable object.