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

readJson() — spring-boot Function Reference

Architecture documentation for the readJson() function in InitializrServiceMetadataTests.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  7f1557c1_e79c_d51d_01cd_03127329d332["readJson()"]
  77421b22_8b69_6b4b_cc38_34b0cccc0858["createInstance()"]
  77421b22_8b69_6b4b_cc38_34b0cccc0858 -->|calls| 7f1557c1_e79c_d51d_01cd_03127329d332
  d1e7d664_bbd8_b5f8_928b_bef69f5b5ce1["JSONObject()"]
  7f1557c1_e79c_d51d_01cd_03127329d332 -->|calls| d1e7d664_bbd8_b5f8_928b_bef69f5b5ce1
  style 7f1557c1_e79c_d51d_01cd_03127329d332 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/init/InitializrServiceMetadataTests.java lines 99–104

	private static JSONObject readJson(String version) throws IOException, JSONException {
		Resource resource = new ClassPathResource("metadata/service-metadata-" + version + ".json");
		try (InputStream stream = resource.getInputStream()) {
			return new JSONObject(StreamUtils.copyToString(stream, StandardCharsets.UTF_8));
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does readJson() do?
readJson() is a function in the spring-boot codebase.
What does readJson() call?
readJson() calls 1 function(s): JSONObject.
What calls readJson()?
readJson() is called by 1 function(s): createInstance.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free