def __contains__(self, items):
        """
        Check if JSON object contains a key
        """
        try:
            if type(items) != list:
                raise PJFInvalidType(items, list)
            ret = 0
            for item in items:
                for key in self.json:
                    if isinstance(self.json[key], PJFFactory):
                        ret += item in self.json[key]
                    elif item == key:
                        ret += 1
            return len(items) == ret
        except Exception as e:
            raise PJFBaseException(e.message if hasattr(e, "message") else str(e))
def __contains__ ( self , items ) : try : if type ( items ) != list : raise PJFInvalidType ( items , list ) ret = 0 for item in items : for key in self . json : if isinstance ( self . json [ key ] , PJFFactory ) : ret += item in self . json [ key ] elif item == key : ret += 1 return len ( items ) == ret except Exception as e : raise PJFBaseException ( e . message if hasattr ( e , "message" ) else str ( e ) )
Check if JSON object contains a key