News for hackers. Stuff that matters.
Re:JSONiq: JSON Query Language by bonzini on Tuesday November 09, 2021 @09:29AM (#29162175)
You can write the example below in jq as

    def avg: add / length;
    group_by(.url) | map({
      "url": .[0].url,
      "hits": length, 
      "avg": map(.response_time) | avg
    })
so jq should be (at least roughly) as powerful as JSONiq.

There are no comments on this comment yet.