@Test
	public void testJsonWithArrays() throws IOException {
		Resource jsonFile = new ClassPathResource("/jsonWithArrays.json");
		assertTrue(jsonFile.exists());
		String json = readJson(jsonFile);

		//Convert to tuple
		TupleJsonMarshaller marshaller = getMarshaller();
		Tuple tuple = marshaller.toTuple(json);

		//Validate contents
		@SuppressWarnings("unchecked")
		List<Tuple> body = (List<Tuple>) tuple.getValue("body");
		Tuple t2 = body.get(0).getTuple("har");
		Tuple t3 = t2.getTuple("log");
		List<?> pages = (List<?>) t3.getValue("pages");
		assertEquals(2, pages.size());

		//Convert back to json.
		String convertedJson = prettyPrintJson(marshaller.fromTuple(tuple));
		assertEquals(json, convertedJson);
	}
@author David Turanski
@author Gary Russell
spring-xd-tuple/src/test/java/org/springframework/xd/tuple/TupleJsonMarshallerTests.java