### Question:
TextUtils { public static String[] parseJSONArray(String json) throws IOException { return MAPPER.readValue(json, String[].class); } private  TextUtils(); static String[] parseDelimited(String delimited, char delimiter); static String[] parsePMMLDelimited(String delimited); static String joinDelimited(Iterable<?> elements, char delimiter); static String joinPMMLDelimited(Iterable<?> elements); static String joinPMMLDelimitedNumbers(Iterable<? extends Number> elements); static String[] parseJSONArray(String json); static String joinJSON(Iterable<?> elements); static T readJSON(String json, Class<T> clazz); static T convertViaJSON(Object value, Class<T> clazz);  }### Answer:
@Test public void testParseJSON() throws Exception { assertArrayEquals(new String[] {"a", "1", "foo"}, TextUtils.parseJSONArray("[\"a\",\"1\",\"foo\"]")); assertArrayEquals(new String[] {"a", "1", "foo", ""}, TextUtils.parseJSONArray("[\"a\",\"1\",\"foo\",\"\"]")); assertArrayEquals(new String[] {"2.3"}, TextUtils.parseJSONArray("[\"2.3\"]")); assertArrayEquals(new String[] {}, TextUtils.parseJSONArray("[]")); }