Skip to content

Commit

Permalink
added JSONReader to file mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
denen99 committed Jun 26, 2024
1 parent 663e170 commit 2088a82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llama-index-core/llama_index/core/readers/file/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def _try_loading_included_file_formats() -> Dict[str, Type[BaseReader]]:
PDFReader,
PptxReader,
VideoAudioReader,
JSONReader,
) # pants: no-infer-dep
except ImportError:
raise ImportError("`llama-index-readers-file` package not found")
Expand All @@ -87,6 +88,7 @@ def _try_loading_included_file_formats() -> Dict[str, Type[BaseReader]]:
".ipynb": IPYNBReader,
".xls": PandasExcelReader,
".xlsx": PandasExcelReader,
".json": JSONReader,
}
return default_file_reader_cls

Expand Down

0 comments on commit 2088a82

Please sign in to comment.