
'''
stubastian stubble stub
also leonardo dicaprio who can act as anyone

it is important to implement json comparison with wild card support


it is a stub system
that expose all defined functionality
and act the same way wenever wat happen
{
  stub : [
    {
       method : "",
       case : [
          {
             doc : "",
             params : {},
             result : {if result},
             error : {if error},
          }
       ],
       default : {
          result : {},
          error : {}
       }
    }
  ]
}

it would be innovativw to make it scan execution queue and see if it find any bew use case

'''

def cmpJsonWildCard(params,wildcard):
    if wildcard == '[...]':
        return True
    if type(params) != type(wildcard):
        return False
    if isinstance(params,list):
        #i asume sum wild do like And operator
        return sum([ cmpJsonWildCard(a,b) for a,b in zip(params,wildcard) ])
    if isinstance(params,str):
        #here wildcard string test
    return True
