pkoppstein

Results 169 comments of pkoppstein

If jq is not doing what you want, then you might wish to consider using gojq, the Go implementation of jq: it rejects your invalid JSON early, with an error...

> (BTW, the docs need info or an example on how to use named captures) In the meantime, the [FAQ](https://github.com/stedolan/jq/wiki/FAQ) has a question: **Q: How are named capture variables used?**

As I understand it, you are suggesting that `!X` should be equivalent to `X == false`. All jq's "logical" operators are based on truthiness, so that proposal would probably add...

For the uninitiated, jq's streaming parser is usually quite difficult to use, but worse, for the following two essential tasks (described here using standard jq syntax), it is typically very...

@fwolfsjaeger - Unfortunately your script does not preserve the JSON structure of the items at the specified point(s). Or at least, I tried it with 'pointer' => '/-' and with...

@halaxa - Thank you for your explanation. Please understand that the difficulty I had was precisely because I read the README quite closely, the point being that in JSON, numbers...

@halaxa @fwolfsjaeger - My PHP was never good to begin with and is by now very rusty, but the following script has already proven useful to me and might provide...

@halaxa - The last post is essentially a CLI script, so I thought this would be the best thread? By the way, many of my colleagues who might benefit from...

@halaxa - I've created Issue#88 in accordance with your request. Should I now delete the script from the message in this thread? As mentioned in Issue#87, I'm not sure how...

It's not clear to me how a CLI script can be implemented to handle a JSON file that contains more than one top-level JSON entity. There are tools for converting...