algebraixlib.io.json module

Import data from JSON.

algebraixlib.io.json.import_json(json_file_or_filepath) → 'P( A x M )'[source]

Import the file json_file_or_filepath as JSON file and return nested relations.

Parameters:json_file_or_filepath – A file path or a file object of the file to be imported.
Returns:A nested relation that represents the JSON document.