List of usage examples for org.json.simple JSONArray toArray
@SuppressWarnings("unchecked") public <T> T[] toArray(T[] a)
From source file:semRewrite.InterpreterWSDBatchTest.java
@Parameterized.Parameters(name = "{0}") public static Collection<Object[]> prepare() { return JsonReader.transform("resources/interpreter_wsd_batch.json", (JSONObject jo) -> { String input = (String) jo.get("input"); JSONArray test = (JSONArray) jo.get("test"); return new Object[] { input, test.toArray(new String[] {}) }; });//from w w w . j a va2s . c o m }