savaki / jq

A high performance Golang implementation of the incredibly useful jq command line tool.
Apache License 2.0
203 stars 24 forks source link

Array indices syntax differs from jq #7

Open andig opened 4 years ago

andig commented 4 years ago

Consider this json:

{
  "version":"0.4",
  "data":{
    "tuples":[[1588250579973,6849.399,1]]
  }
}

To get a the tuples jq accepts (and requires)

.data.tuples[0][1]

this package in turn requires

.data.tuples.[0].[1]

This makes it rather hard to test queries upfront.

Might be related to #2. Is this package still alive at all?