mindspore.dataset.Dataset.to_json

Dataset.to_json(filename='')[source]

Serialize a pipeline into JSON string and dump into file if filename is provided.

Parameters

filename (str) – filename of JSON file to be saved as. Default: ‘’.

Returns

str, JSON string of the pipeline.