Giter Club home page Giter Club logo

Comments (6)

bovine avatar bovine commented on July 17, 2024

That's an interesting observation. In general, we've tried to make the yajl::json2dict function perform identically to the same one provided by the json package, except faster. However, this is indeed an unintended difference in behavior:

package require json

::json::json2dict {{
"valueTrue": true,
"valueFalse": false
}}

valueTrue true valueFalse false

from yajl-tcl.

bovine avatar bovine commented on July 17, 2024

I think changing the replacements in parse2dict_boolean_callback might fix this behavior? https://github.com/flightaware/yajl-tcl/blob/master/generic/yajltcl.c#L227

from yajl-tcl.

ramikhaldi avatar ramikhaldi commented on July 17, 2024

Thanks @bovine for your response, I also have seen that location but I was not sure if there might be other side effects when fixing it. As there are already tests for the library, we can rerun the tests and see if something has been broken. I will recompile the library and check.

from yajl-tcl.

ramikhaldi avatar ramikhaldi commented on July 17, 2024

@bovine I have performed a pull request. Let's see the test results in the ci..

from yajl-tcl.

ramikhaldi avatar ramikhaldi commented on July 17, 2024

Can you please approve the waiting workflows (#39)? Thanks.

from yajl-tcl.

bovine avatar bovine commented on July 17, 2024

That PR has been merged and released as v1.8.1

from yajl-tcl.

Related Issues (18)

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.