Skip to content

Commit

Permalink
JSONLoader Documentation Fix (#10505)
Browse files Browse the repository at this point in the history
- Description: 
Updated JSONLoader usage documentation which was making it unusable
- Issue: JSONLoader if used with the documented arguments was failing on
various JSON documents.
- Dependencies: 
no dependencies
- Twitter handle: @TheSlnArchitect
  • Loading branch information
amdmax authored Sep 21, 2023
1 parent e5f420d commit 697efd9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ Suppose we are interested in extracting the values under the `content` field wit
```python
loader = JSONLoader(
file_path='./example_data/facebook_chat.json',
jq_schema='.messages[].content')
jq_schema='.messages[].content',
text_content=False)

data = loader.load()
```
Expand Down Expand Up @@ -145,6 +146,7 @@ pprint(Path(file_path).read_text())
loader = JSONLoader(
file_path='./example_data/facebook_chat_messages.jsonl',
jq_schema='.content',
text_content=False,
json_lines=True)

data = loader.load()
Expand Down

0 comments on commit 697efd9

Please sign in to comment.