Reimplemented onedrive-json to work with different functions