chore(index): use safeJSON to export user