News for hackers. Stuff that matters.
Re:Htmlq: like jq, but for html by dmos62 on Tuesday September 07, 2021 @05:13AM (#28442639)
You might be missing a change in index: `obj[0].prop` vs `obj[1].prop`. Or, your JSON might have the same property defined multiple times: `{a:1, a:2}` (though I'm not sure how gron handles that situation).
Re:Htmlq: like jq, but for html by lvncelot on Tuesday September 07, 2021 @06:03AM (#28442933)
> (though I'm not sure how gron handles that situation).

It seems both gron and jq only use the value that has been defined last:

  ~  echo '{"a":1,"a":2}' | gron                                                                                                                                   
  json = {};
  json.a = 2;
  ~  echo '{"a":1,"a":2}' | jq                                                                                                                                    
  {
    "a": 2
  }