readArray() — spring-boot Function Reference
Architecture documentation for the readArray() function in JSONTokener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD da568135_bed6_f988_5f6f_c09ed51fd977["readArray()"] 87e46e8d_3da0_7f48_7371_9287ac91a438["nextValue()"] 87e46e8d_3da0_7f48_7371_9287ac91a438 -->|calls| da568135_bed6_f988_5f6f_c09ed51fd977 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b["nextCleanInternal()"] da568135_bed6_f988_5f6f_c09ed51fd977 -->|calls| 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b 2ea9368b_02eb_2d26_b6e7_aaf2153de2a0["syntaxError()"] da568135_bed6_f988_5f6f_c09ed51fd977 -->|calls| 2ea9368b_02eb_2d26_b6e7_aaf2153de2a0 87e46e8d_3da0_7f48_7371_9287ac91a438["nextValue()"] da568135_bed6_f988_5f6f_c09ed51fd977 -->|calls| 87e46e8d_3da0_7f48_7371_9287ac91a438 style da568135_bed6_f988_5f6f_c09ed51fd977 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-metadata/src/json-shade/java/org/springframework/boot/configurationmetadata/json/JSONTokener.java lines 411–447
private JSONArray readArray() throws JSONException {
JSONArray result = new JSONArray();
/* to cover input that ends with ",]". */
boolean hasTrailingSeparator = false;
while (true) {
switch (nextCleanInternal()) {
case -1:
throw syntaxError("Unterminated array");
case ']':
if (hasTrailingSeparator) {
result.put(null);
}
return result;
case ',', ';':
/* A separator without a value first means "null". */
result.put(null);
hasTrailingSeparator = true;
continue;
default:
this.pos--;
}
result.put(nextValue());
switch (nextCleanInternal()) {
case ']':
return result;
case ',', ';':
hasTrailingSeparator = true;
continue;
default:
throw syntaxError("Unterminated array");
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does readArray() do?
readArray() is a function in the spring-boot codebase.
What does readArray() call?
readArray() calls 3 function(s): nextCleanInternal, nextValue, syntaxError.
What calls readArray()?
readArray() is called by 1 function(s): nextValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free