public JobParameters getJobParametersForJsonString(String jobParametersAsJsonMap) {

		final Map<String, Object> parameters;

		if (jobParametersAsJsonMap != null && !jobParametersAsJsonMap.isEmpty()) {

			final MapType mapType = objectMapper.getTypeFactory().constructMapType(HashMap.class, String.class,
					String.class);

			try {
				parameters = new ObjectMapper().readValue(jobParametersAsJsonMap, mapType);
			}
			catch (IOException e) {
				throw new IllegalArgumentException("Unable to convert provided JSON to Map<String, Object>", e);
			}

		}
		else {
			parameters = null;
		}

		return getJobParametersForMap(parameters);
	}
Converts a {@link String}-based JSON map to {@link JobParameters}. The String is converted using Jackson's
{@link ObjectMapper}.

The method will ultimately call {@link #getJobParametersForMap(Map)}.

@param jobParametersAsJsonMap Can be null or empty.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/ExpandedJobParametersConverter.java