This script goes through a .json exported roam graph and converts the '/' characters in page titles with a '-' character.
Useful for Obsidian migration, because Obsidian interprets a file with the title '12/16 Math Notes' as a file called '16 Math Notes' in the folder '12/'.
import json
def replace_slashes(data):
if isinstance(data, dict):
for key, value in data.items():