run-llama / llama-hub

A library of data loaders for LLMs made by the community -- to be used with LlamaIndex and/or LangChain
https://llamahub.ai/
MIT License
3.45k stars 732 forks source link

JSONReader: Encoding fixes UnicodeDecodeError #665

Open freinold opened 11 months ago

freinold commented 11 months ago

Description

Provides additional encoding parameter in JSONReader, default is UTF-8. Fixes "UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 3445: character maps to " on Windows 10 x64

Type of Change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Suggested Checklist:

anoopshrma commented 11 months ago

Hi @freinold, Thankyou for the contribution.

Could you also please take a look at linting!