Home / Function/ toJSONArray() — spring-boot Function Reference

toJSONArray() — spring-boot Function Reference

Architecture documentation for the toJSONArray() function in JSONObject.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  466311fc_2f6c_32c6_42ad_1dc532f4c748["toJSONArray()"]
  0ad10147_3caf_317d_362e_991f3688d916["length()"]
  466311fc_2f6c_32c6_42ad_1dc532f4c748 -->|calls| 0ad10147_3caf_317d_362e_991f3688d916
  25d40183_26ea_b694_9fd5_1317b25e7da2["toString()"]
  466311fc_2f6c_32c6_42ad_1dc532f4c748 -->|calls| 25d40183_26ea_b694_9fd5_1317b25e7da2
  95f4b38d_c00e_563b_67a0_1ac9214df77c["opt()"]
  466311fc_2f6c_32c6_42ad_1dc532f4c748 -->|calls| 95f4b38d_c00e_563b_67a0_1ac9214df77c
  0fcb93b3_4873_3258_b9e6_29138d183448["put()"]
  466311fc_2f6c_32c6_42ad_1dc532f4c748 -->|calls| 0fcb93b3_4873_3258_b9e6_29138d183448
  style 466311fc_2f6c_32c6_42ad_1dc532f4c748 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/JSONObject.java lines 653–667

	public JSONArray toJSONArray(JSONArray names) {
		JSONArray result = new JSONArray();
		if (names == null) {
			return null;
		}
		int length = names.length();
		if (length == 0) {
			return null;
		}
		for (int i = 0; i < length; i++) {
			String name = JSON.toString(names.opt(i));
			result.put(opt(name));
		}
		return result;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does toJSONArray() do?
toJSONArray() is a function in the spring-boot codebase.
What does toJSONArray() call?
toJSONArray() 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