spring-geode/src/main/java/org/springframework/geode/data/json/converter/support/JacksonObjectToJsonConverter.java
/**
	 * Converts the given {@link Object} into {@link String JSON}.
	 *
	 * @param source {@link Object} to convert into {@link String JSON}.
	 * @return {@link String JSON} generated from the given {@link Object} using Jackson's {@link ObjectMapper}.
	 * @throws IllegalArgumentException if {@link Object source} is {@literal null}.
	 * @throws ConversionFailedException if a {@link JsonProcessingException} is thrown or another error occurs
	 * while trying to convert the given {@link Object} to {@link String JSON}.
	 * @see com.fasterxml.jackson.databind.ObjectMapper
	 * @see #convertObjectToJson(Object)
	 */
Converts the given  Object into  String JSON.
@param source  Object to convert into  String JSON.
@return  String JSON generated from the given  Object using Jackson's  ObjectMapper.
@throws IllegalArgumentException if  Object source is  null.
@throws ConversionFailedException if a  JsonProcessingException is thrown or another error occurs
while trying to convert the given  Object to  String JSON.
Converts the given Object into String JSON . @param source Object to convert into String JSON . @return String JSON generated from the given Object using Jackson ' s ObjectMapper . @throws IllegalArgumentException if Object source is null . @throws ConversionFailedException if a JsonProcessingException is thrown or another error occurs while trying to convert the given Object to String JSON .
@Override
	public @NonNull String convert(@NonNull Object source) {
		Assert.notNull(source, "Source object to convert must not be null");
		try {
			return convertObjectToJson(source);
		}
		catch (JsonProcessingException cause) {
			throw new ConversionFailedException(TypeDescriptor.forObject(source), TypeDescriptor.valueOf(String.class),
				source, cause);
		}
	}
@ Override public @ NonNull String convert ( @ NonNull Object source ) { Assert . notNull ( source , "Source object to convert must not be null" ) ; try { return convertObjectToJson ( source ) ; } catch ( JsonProcessingException cause ) { throw new ConversionFailedException ( TypeDescriptor . forObject ( source ) , TypeDescriptor . valueOf ( String . class ) , source , cause ) ; } }
Converts the given {@link Object} into {@link String JSON}.
Converts the given { @link Object } into { @link String JSON } .