toJSONObject() — spring-boot Function Reference
Architecture documentation for the toJSONObject() function in JSONArray.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0a0f807f_e96b_1f82_b758_e1f3239c96a7["toJSONObject()"] ddc6afa8_7405_eac5_8bc7_c1f7781c5af8["length()"] 0a0f807f_e96b_1f82_b758_e1f3239c96a7 -->|calls| ddc6afa8_7405_eac5_8bc7_c1f7781c5af8 6ffd790e_412d_9280_eae3_28e6a9add3b8["toString()"] 0a0f807f_e96b_1f82_b758_e1f3239c96a7 -->|calls| 6ffd790e_412d_9280_eae3_28e6a9add3b8 17baeb06_fa82_f100_89b4_a0074d1e868e["opt()"] 0a0f807f_e96b_1f82_b758_e1f3239c96a7 -->|calls| 17baeb06_fa82_f100_89b4_a0074d1e868e 88f77b45_9cfd_0b63_e1e8_87a3b0e37a4a["put()"] 0a0f807f_e96b_1f82_b758_e1f3239c96a7 -->|calls| 88f77b45_9cfd_0b63_e1e8_87a3b0e37a4a style 0a0f807f_e96b_1f82_b758_e1f3239c96a7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONArray.java lines 583–594
public JSONObject toJSONObject(JSONArray names) throws JSONException {
JSONObject result = new JSONObject();
int length = Math.min(names.length(), this.values.size());
if (length == 0) {
return null;
}
for (int i = 0; i < length; i++) {
String name = JSON.toString(names.opt(i));
result.put(name, opt(i));
}
return result;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does toJSONObject() do?
toJSONObject() is a function in the spring-boot codebase.
What does toJSONObject() call?
toJSONObject() calls 4 function(s): length, opt, put, toString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free