value() — spring-boot Function Reference
Architecture documentation for the value() function in JSONStringer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2ce2d03e_71eb_626c_9b4f_450ef5dc5b79["value()"] d1b30bcd_285c_293e_1e7e_4dea1cefb8c1["beforeValue()"] 2ce2d03e_71eb_626c_9b4f_450ef5dc5b79 -->|calls| d1b30bcd_285c_293e_1e7e_4dea1cefb8c1 8e01b66e_3088_391c_7224_2c5acfeeb5a9["string()"] 2ce2d03e_71eb_626c_9b4f_450ef5dc5b79 -->|calls| 8e01b66e_3088_391c_7224_2c5acfeeb5a9 511eb5be_3f24_7d43_e6df_35a41ba25407["toString()"] 2ce2d03e_71eb_626c_9b4f_450ef5dc5b79 -->|calls| 511eb5be_3f24_7d43_e6df_35a41ba25407 style 2ce2d03e_71eb_626c_9b4f_450ef5dc5b79 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 236–265
public JSONStringer value(Object value) throws JSONException {
if (this.stack.isEmpty()) {
throw new JSONException("Nesting problem");
}
if (value instanceof JSONArray) {
((JSONArray) value).writeTo(this);
return this;
}
else if (value instanceof JSONObject) {
((JSONObject) value).writeTo(this);
return this;
}
beforeValue();
if (value == null || value instanceof Boolean || value == JSONObject.NULL) {
this.out.append(value);
}
else if (value instanceof Number) {
this.out.append(JSONObject.numberToString((Number) value));
}
else {
string(value.toString());
}
return this;
}
Domain
Subdomains
Calls
- beforeValue()
- string()
- toString()
Source
Frequently Asked Questions
What does value() do?
value() is a function in the spring-boot codebase.
What does value() call?
value() calls 3 function(s): beforeValue, string, toString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free