BaseDistribution.to_json (function)


def to_json(self, **kwargs)

Return the json representation of the distribution object.

The resulting dictionary can be restored to the original object via distl.from_json.

See also:

Arguments

  • **kwargs: all keyword arguments will be sent to json.dumps

Returns

  • string