tidwall / gjson

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

Any ideas how to do a full-text query over all fields? #279

Open Robert-M-Muench opened 2 years ago

Robert-M-Muench commented 2 years ago

I have a bigger and more complex JSON object and want to search for a substring in every field, array, etc.

Is such a query possible?

Robert-M-Muench commented 2 years ago

*.#(*=="1")# works finding any field that is 1

*.#(test%"00*")# works finding substrings in the field test

*.#(*%"00*")# finding the substring in all fields doesn't work.