Comments (3)
(I took the liberty of editing the original question for correct formatting)
@ShawnLin-pku your JSON document is not valid: ObjectId
is not a valid token in JSON. It looks like you have a document that looks like JSON, but isn't strictly JSON.
from ijson.
(I took the liberty of editing the original question for correct formatting)
@ShawnLin-pku your JSON document is not valid:
ObjectId
is not a valid token in JSON. It looks like you have a document that looks like JSON, but isn't strictly JSON.
Thanks for your reply. I exported this document from mongo database. So how can I load this file using ijson's iterator? (It's so big that I can't load it directly in memory)
from ijson.
@ShawnLin-pku you can't load it with ijson
because it's not a valid JSON document, it just looks very much like one.
from ijson.
Related Issues (20)
- ijson.parse iter_lines() returns error too many values to unpack (expected 2) HOT 5
- How to correctly stream *multiple* chunks of JSON? HOT 1
- ijson.kvitems(prefix) iterates through items even after the prefix was found and closed HOT 3
- Allow kvitems to stop iterating after first matches are found
- Release wheels for 3.10 HOT 4
- ijson stops to working HOT 4
- Different errors for YAJL_C vs Python backends HOT 6
- Ijson 3.1.2 causing Segmentation fault. HOT 4
- How to parse JSON file with ijson? HOT 2
- Save to json HOT 1
- Support/Builds for Python 3.10 HOT 11
- Can read a stream of JSON from a file descriptor HOT 1
- Performance of long lists versus dense objects HOT 2
- YAJL backend not working in Win/Conda HOT 3
- Segmentation fault with yajl2 backend HOT 3
- How to define a prefix where an object contains dot characters HOT 2
- Generators created by ijson.items() do not seem to have an end HOT 5
- Nested structure reading HOT 2
- Use stacklevel to point str vs bytes warning to user code HOT 3
- Release wheels for 3.11 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ijson.