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 ffb1a7e8_da1c_3d81_eee9_13a1276f4773["toJSONObject()"] 1b3d0a68_657d_02e7_ac7c_605a667f6b93["length()"] ffb1a7e8_da1c_3d81_eee9_13a1276f4773 -->|calls| 1b3d0a68_657d_02e7_ac7c_605a667f6b93 ba40c0e5_bfda_bf16_1d14_ca522c009158["toString()"] ffb1a7e8_da1c_3d81_eee9_13a1276f4773 -->|calls| ba40c0e5_bfda_bf16_1d14_ca522c009158 c84006b6_90fc_34f2_d36b_23f5c525e8bb["opt()"] ffb1a7e8_da1c_3d81_eee9_13a1276f4773 -->|calls| c84006b6_90fc_34f2_d36b_23f5c525e8bb 672942ec_ef20_5c95_99dd_9126cb119175["put()"] ffb1a7e8_da1c_3d81_eee9_13a1276f4773 -->|calls| 672942ec_ef20_5c95_99dd_9126cb119175 style ffb1a7e8_da1c_3d81_eee9_13a1276f4773 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/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