Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If the database is mysql, you can query the database with JSON_EXTRACT.
But if there is a lot of data in the table, it is better to pull out the filters field into a separate table.
Working with json in mysql
https://dev.mysql.com/doc/refman/8.0/en/json-funct...
select *
from tbl
where JSON_CONTAINS(filters, '{"1":["0"]}') = 1
OR JSON_CONTAINS(filters, '{"1":["3"]}') = 1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question