profile: add missing call to write_json