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 92191868_5757_b438_a428_8a7b39e68bad["value()"] 250890e2_bc7d_48c3_5fce_7d652e3be2b4["beforeValue()"] 92191868_5757_b438_a428_8a7b39e68bad -->|calls| 250890e2_bc7d_48c3_5fce_7d652e3be2b4 9cf535e0_9471_f6c9_8763_74ee901ad411["string()"] 92191868_5757_b438_a428_8a7b39e68bad -->|calls| 9cf535e0_9471_f6c9_8763_74ee901ad411 1ad31748_c493_35c8_3afc_3bde079c96ff["toString()"] 92191868_5757_b438_a428_8a7b39e68bad -->|calls| 1ad31748_c493_35c8_3afc_3bde079c96ff style 92191868_5757_b438_a428_8a7b39e68bad 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/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