public JsonSerializer withSerializer(final Class type, final TypeJsonSerializer typeJsonSerializer) {
    """
	Defines custom {@link jodd.json.TypeJsonSerializer} for given type.
    """
		if (typeSerializersMap == null) {
			typeSerializersMap = new TypeJsonSerializerMap(TypeJsonSerializerMap.get());
		}

		typeSerializersMap.register(type, typeJsonSerializer);

		return this;
	}
public JsonSerializer withSerializer(final Class type, final TypeJsonSerializer typeJsonSerializer) {
		if (typeSerializersMap == null) {
			typeSerializersMap = new TypeJsonSerializerMap(TypeJsonSerializerMap.get());
		}

		typeSerializersMap.register(type, typeJsonSerializer);

		return this;
	}
public JsonSerializer withSerializer ( final Class type , final TypeJsonSerializer typeJsonSerializer ) { if ( typeSerializersMap == null ) { typeSerializersMap = new TypeJsonSerializerMap ( TypeJsonSerializerMap . get ( ) ) ; } typeSerializersMap . register ( type , typeJsonSerializer ) ; return this ; }
Defines custom {@link jodd.json.TypeJsonSerializer} for given type.
Defines custom {