mwh / jqjs Goto Github PK
View Code? Open in Web Editor NEWPure-JavaScript implementation of the jq JSON query language
License: MIT License
Pure-JavaScript implementation of the jq JSON query language
License: MIT License
At the moment library doesn't seem to be published to npm even though it might be interesting for many users to try.
When using true and true
as the program, the error message given is "no such function and/0".
I wouldn't think and
/or
would be functions, so I don't understand the error.
Hello. I love your project, but why are conditionals (if A then B else C) not implemented? Any special reason? Or just TODO? Conditionals seem like something rather simple comparing to other stuff that you already have done.
Given {x: (1,2)}
the correct result is
{
x: 1
}
{
x: 2
}
but jqjs instead produces {x:2}
only.
With an empty value as in {x:(1,2), y: empty}
, the result should also be empty, but jqjs produces an object with no y key.
With multiple multiple-result values as in {x:(1,2), y:(3,4)}
all four combinations should be produced, instead of only the last one.
group_by is missing as a feature.
Are there any suggestions on how to implement it maybe with reduce?
I've tried with smth like reduce .[] as $item ({}; .[$item.id|tostring] = $item) which works in https://jqkungfu.com/ for instance but jqjs says that plain assignment is not supported.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.