MCPcopy Index your code
hub / github.com/apache/tomcat / parseArray

Method parseArray

java/org/apache/tomcat/util/json/JSONParser.java:49–55  ·  view source on GitHub ↗

Parses a JSON array into a Java List.

()

Source from the content-addressed store, hash-verified

47 * Parses a JSON array into a Java {@code List}.
48 */
49 public java.util.ArrayList<Object> parseArray() throws ParseException {
50 java.util.ArrayList<Object> toReturn = list();
51 if (!ensureEOF()) {
52 throw new IllegalStateException("Expected EOF, but still had content to parse");
53 }
54 return toReturn;
55 }
56
57 /**
58 * Parses any JSON-parseable object, returning the value.

Callers 1

doTestFileMethod · 0.95

Calls 2

listMethod · 0.95
ensureEOFMethod · 0.95

Tested by 1

doTestFileMethod · 0.76