def __init__( self, *args, **kwargs ):
    JSONEncoder.__init__( self )

    if args and kwargs:
      raise ValueError( "Please provide either args or kwargs, not both." )

    self.__args = args
    self.__kwargs = kwargs