Refactor loom.store.get_paths to use nested json structure