Giter Club home page Giter Club logo

Comments (5)

eiiches avatar eiiches commented on June 14, 2024 2

Thank you for your comment!

jackson-jq aims to be a compatible jq-1.5 (or the future version of jq once it's released) implementation.

However, as jackson-jq being a java library, some features may differ when/if implemented in the future: Streaming, I/O, and Modules.

  • For Streaming and I/O feature, I'm not sure if these can be added to jackson-jq. Actually, I have never tried the features on jq myself yet.
  • For Modules, I've been thinking to make it more like a java integration feature which enables importing static methods directly from java classes or something like that.

Other than those, any incompatible behaviors in core language features and built-in functions are considered defects and should be fixed. The biggest issue I'm aware of currently is the lack of Complex Assignment support.

That said, the development will probably be slow. I will continue to work on this, but I haven't been able to spare much time recently.

BTW, I will be releasing jackson-jq v0.0.7 in a few days, which comes with some jq-1.5 features, such as destructuring, regular expressions (with Oniguruma), and so on.

from jackson-jq.

larsga avatar larsga commented on June 14, 2024 1

FWIW, I did an experimental Java integration this week that enables me to call static Java methods. Basically, it's a Function implementation which wraps a java.lang.reflect.Method and then takes care of the type conversions. It's experimental, so it only handles some of the types, but the basic approach works. I wrote it in Scala, though.

from jackson-jq.

eiiches avatar eiiches commented on June 14, 2024

Yes, I think. I also use jackson-jq for transforming responses from APIs before mapping to Java objects, eliminating the intermediate Java objects.

You should try jackson-jq tool and see if the exact jq code you want to use work or not.
https://github.com/eiiches/jackson-jq#using-a-jackson-jq-command-line-tool
Also, the list of features not yet implemented in jackson-jq might be of help.
https://github.com/eiiches/jackson-jq#differences-between-jq-and-jackson-jq

Does this answer your question?

from jackson-jq.

marcosscriven avatar marcosscriven commented on June 14, 2024

Wanted to say firstly thanks a lot for this excellent implementation of jq!

Secondly, I had a similar question - I see you've implemented this from scratch, starting with a javacc parser definition, and implementing nearly everything. An absolutely epic amount of work!

So I wondered if/how you planned to maintain feature parity?

from jackson-jq.

eiiches avatar eiiches commented on June 14, 2024

I'm closing this for now. Feel free to reopen if you have further questions.

from jackson-jq.

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.