tidwall / gjson

Get JSON values quickly - JSON parser for Go
MIT License
13.95k stars 841 forks source link

Filtering entries in a JSON object #284

Open franchb opened 2 years ago

franchb commented 2 years ago

Hi!

How I could filter entries in a JSON like this:

{
  "e_ca_subject_field_empty": {
    "result": "pass"
   },
   "e_cab_dv_conflicts_with_locality": {
      "result": "NA"
   }
}

I want to filter out all entries containing "NA" value.

I've started with *.(result!="NA") but it doesn't work.