Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Detected a JSON file that does not conform to the Unstructured schema. partition_json currently only processes serialized Unstructured output. #2930

Open
NicoleNL opened this issue Apr 25, 2024 · 0 comments

Comments

@NicoleNL
Copy link

When trying to load json file using S3FileLoader which uses Unstructured to load files, it's showing this error :
ValueError: Detected a JSON file that does not conform to the Unstructured schema. partition_json currently only processes serialized Unstructured output.

This is my json file:
{
"bakery": {
"name": "Delicious Delights Bakery",
"location": "Cityville",
"contact": {
"phone": "1234",
"email": "abc@email.com"
},
"opening_hours": {
"Monday": "8:00 AM - 6:00 PM",
"Tuesday": "8:00 AM - 6:00 PM",
"Wednesday": "8:00 AM - 6:00 PM",
"Thursday": "8:00 AM - 6:00 PM",
"Friday": "8:00 AM - 8:00 PM",
"Saturday": "9:00 AM - 8:00 PM",
"Sunday": "10:00 AM - 4:00 PM"
},
"products": [
{
"name": "Croissant",
"price": "$2.50"
},
{
"name": "Baguette",
"price": "$3.00"
},
{
"name": "Cupcake",
"price": "$2.00"
},
{
"name": "Sourdough Bread",
"price": "$4.00"
}
]
}
}

Would like to check how can this error be resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant