@Test
public void testParse() {

  final JsonObj json = JsonObj.jsonObj(jsonString);
  assertEquals("org.opencastproject.analytics", json.getObj("service").get(String.class, "type"));
  assertEquals(true, json.obj("service").get(Boolean.class, "active"));
  assertEquals(true, json.obj("service").val("active").as(asBoolean));
  assertEquals("http://localhost:8080", json.obj("service").val("host").as(asString));
  assertEquals(new Integer(1), json.obj("service").arr("array").val(0).as(asInteger));
}