Git Product home page Git Product logo

Comments (5)

rtobar avatar rtobar commented on July 21, 2024 1

A new 3.1.3 release containing this fix and others is now up in PyPI.

from ijson.

rtobar avatar rtobar commented on July 21, 2024

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 and 1. are invalid). The python 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.

rtobar avatar rtobar commented on July 21, 2024

Fix is now on the master branch.

from ijson.

lwoerdeman avatar lwoerdeman commented on July 21, 2024

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.

rtobar avatar rtobar commented on July 21, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.