code: def validate_query_structure(query):
      
      query_dict = dict(query)
      filters = query_dict.pop('_filters', None)
      if filters:
          try:
              f = json.loads(filters)
          except ValueError:
              msg = '_filters field can not be serialized'
              raise JsonValidaitonError(msg)
          else:
              query_dict['_filters'] = f
      try:
          q = ListQuery(query_dict)
      except t.DataError as exc:
          msg = '_filters query invalid'
          raise JsonValidaitonError(msg, **as_dict(exc))
  
      return q
docs: Validate query arguments in list request.
  
      :param query: mapping with pagination and filtering information