private List<Module> parseJsonToModule(String json) {
		ObjectMapper mapper = new ObjectMapper();
		try {
			JMXResult jmxResult = mapper.readValue(json,
					new TypeReference<JMXResult>() {
			});
			return jmxResult.getValue().getModules();
		}
		catch (JsonParseException parseException) {
			throw new IllegalStateException(parseException.getMessage(), parseException);
		}
		catch (JsonMappingException mapException) {
			throw new IllegalStateException(mapException.getMessage(), mapException);
		}
		catch (IOException ioException) {
			throw new IllegalStateException(ioException.getMessage(), ioException);
		}

	}
Verifies that extra data will not prevent a parse.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/util/JMXTest.java