Comments (5)
A new 3.1.3 release containing this fix and others is now up in PyPI.
from ijson.
Thanks @lwoerdeman for reporting this. This was indeed a wrong behavior on the python
backend, which I have now fixed and will soon merge back to the master
branch (and eventually produce a new release on PyPI, together with other fixes).
While fixing this (and adding tests to ensure it didn't occur in the future) I found two more small problems:
- JSON numbers containing a decimal point need to be surrounded by at least one digit at each side (e.g.,
.1
and1.
are invalid). Thepython
backend also incorrectly allowed these, so I fixed that as well. - The
yajl
backend also allows leading zeros. Note that this backend uses yajl version 1.x and has been considered deprecated for a long time. To address this I simply documented the difference in behvaior on the README file.
from ijson.
Fix is now on the master
branch.
from ijson.
Hey @rtobar, thank you for resolving this issue so quickly. Do you have an expected release date for the fix to be in PyPI?
from ijson.
@lwoerdeman hopefully within one or two days. There is another minor fix I want to include before creating a new patch release, but I need to first make sure it works as expected.
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.