Save data to a json file.
The function will deepcopy the data and then jsonify the content
in place. Support data types for jsonify consist of str, int, float,
bool and their np.ndarray respectively.
- Parameters
data (dict or list) – Input data to save.
save_path (str) – Output to save the json of input.
parents (bool) – Make parent directories if they do not exist. Default is
False.
exist_ok (bool) – Overwrite the output file if it exists. Default is False.