[Data loader] Make json data loader work for other languages (#897)

Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
Deven Patel
2023-11-01 22:27:40 -07:00
committed by GitHub
parent df314dc6d1
commit a054f7be9c
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class JSONLoader(BaseLoader):
# Load json data from various sources. TODO: add support for dictionary
if os.path.isfile(content):
with open(content, "r") as json_file:
with open(content, "r", encoding="utf-8") as json_file:
json_data = json.load(json_file)
elif re.match(VALID_URL_PATTERN, content):
response = requests.get(content)

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "embedchain"
version = "0.0.89"
version = "0.0.90"
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
authors = [
"Taranjeet Singh <taranjeet@embedchain.ai>",