Comments (6)
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.
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.
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.
@bovine I have performed a pull request. Let's see the test results in the ci..
from yajl-tcl.
Can you please approve the waiting workflows (#39)? Thanks.
from yajl-tcl.
That PR has been merged and released as v1.8.1
from yajl-tcl.
Related Issues (18)
- "make install" fails due to missing docs HOT 4
- Something is too slow... HOT 10
- That the "parse" method defines a number callback prevents the integer and double callbacks from ever being invoked
- Update to support yajl 2.x branch HOT 1
- Configure doesn't work HOT 3
- Add map_json HOT 3
- yajl "number" should reject invalid arguments
- Atom Editor / Syntax Highlighting HOT 1
- Add [yajl parse] command HOT 4
- [$obj parse] not working properly? HOT 7
- Add json parsing into simple key/value dict compatible format HOT 1
- Not linked with libyajl - TCL 8.5+ cannot load - Ubuntu (work-around) HOT 8
- What is the current stable version? HOT 3
- Documentation website is missing json2dict
- yajl "number" type does not reject blank arguments HOT 1
- Issues while processing json containing braces HOT 6
- yajl parse returns "boolean" but the command is named "bool"
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 yajl-tcl.