close() — spring-boot Function Reference
Architecture documentation for the close() function in JSONStringer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 58f496c6_04b9_830b_5d94_ed503c408b24["close()"] 1191bb47_0500_c790_6700_0eef6d42f00b["endArray()"] 1191bb47_0500_c790_6700_0eef6d42f00b -->|calls| 58f496c6_04b9_830b_5d94_ed503c408b24 2f73fd10_1a52_3147_c147_7d2134506a3a["endObject()"] 2f73fd10_1a52_3147_c147_7d2134506a3a -->|calls| 58f496c6_04b9_830b_5d94_ed503c408b24 e532399d_15ce_1aa0_3023_65e4c0f2706a["peek()"] 58f496c6_04b9_830b_5d94_ed503c408b24 -->|calls| e532399d_15ce_1aa0_3023_65e4c0f2706a fde32a20_30b1_e5ec_2935_875f5d28ca41["newline()"] 58f496c6_04b9_830b_5d94_ed503c408b24 -->|calls| fde32a20_30b1_e5ec_2935_875f5d28ca41 style 58f496c6_04b9_830b_5d94_ed503c408b24 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/json-shade/java/org/springframework/boot/cli/json/JSONStringer.java lines 194–206
JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException {
Scope context = peek();
if (context != nonempty && context != empty) {
throw new JSONException("Nesting problem");
}
this.stack.remove(this.stack.size() - 1);
if (context == nonempty) {
newline();
}
this.out.append(closeBracket);
return this;
}
Domain
Subdomains
Called By
- endArray()
- endObject()
Source
Frequently Asked Questions
What does close() do?
close() is a function in the spring-boot codebase.
What does close() call?
close() calls 2 function(s): newline, peek.
What calls close()?
close() is called by 2 function(s): endArray, endObject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free