StringJsonBuilder implements JsonBuilder { @Override public Object toJson(Object arr) { return toJson(arr, factory); } StringJsonBuilder(JsonBuilderFactory factory); @Override JsonBuilder add(String name, Object o); @Override String build(); @Override Object toJson(Object arr);  }
@Test public void toJsonStringArray() { String[] a = new String[] { "a", "b", "c", "That's it" }; assertEquals("[\"a\",\"b\",\"c\",\"That's it\"]", factory.createJsonBuilder().toJson(a)); }