memoryfm.ScrobbleLog.from_json#

classmethod ScrobbleLog.from_json(file=None)#

Create ScrobbleLog from a canonical JSON.

Parameters:
filePathLike or TextIOBase object.
  • A pathlib path, or

  • A string corresponding to a path, such as /home/username/Documents/filename, or

  • A TextIOBase object having a read() method.

The file must contain a valid canonical JSON.

Returns:
ScrobbleLog

See also

to_json()

Convert a ScrobbleLog to a canonical JSON.