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

Method parse

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

Parses any JSON-parseable object, returning the value.

()

Source from the content-addressed store, hash-verified

58 * Parses any JSON-parseable object, returning the value.
59 */
60 public Object parse() throws ParseException {
61 Object toReturn = anything();
62 if (!ensureEOF()) {
63 throw new IllegalStateException("Expected EOF, but still had content to parse");
64 }
65 return toReturn;
66 }
67
68 private static String substringBefore(String str, char delim) {
69 int pos = str.indexOf(delim);

Callers 2

testMethod · 0.95
testStatusServletMethod · 0.95

Calls 2

anythingMethod · 0.95
ensureEOFMethod · 0.95

Tested by 2

testMethod · 0.76
testStatusServletMethod · 0.76