def register_tag(cls):
 json_tags[(TAG_PREFIX + getattr(cls, 'json_tag'))] = cls
 return cls

def register_tag ( cls ) : json_tags [ ( TAG_PREFIX + getattr ( cls , 'json_tag' ) ) ] = cls return cls
decorates a class to register its json tag .