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