to_json# stimupy.utils.to_json(stim, filename)# Save stimulus-dict(s) as (pretty) JSON Parameters: stim (dict) – stimulus dictionary to export. filename (Path or str) – (full) path to the file to be created.