ulkb.Object.to_json#

Object.to_json(to=None, encoding=None, **kwargs)#

Serializes object to JSON stream.

Parameters:
  • to – Target file path or stream object.

  • encoding – Encoding.

  • kwargs – Options to serializer.

Returns:

The resulting string if to is None. Otherwise, write the resulting string to to and returns None.