How to filter JSON with graphql

Hi!.
How do I filter information that its attribute is json? Currently I do the filter with a string and it works correctly.

query($term: String! ){
  news(
filters: {
      tags: { containsi: $term },
      or: [
        { 
          title: $term
        }
      ]
    }
  ){
    data{
      attributes{
        tags
      }
    }
  }
}
System Information
  • Strapi Version: 4.1.12
  • Operating System: macOS Monterey
  • Database: postgres
  • Node Version: v14.19.3
  • NPM Version: 6.14.17
  • Yarn Version: 1.22.17