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

readJson() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  97bd14d0_b97f_01c3_08d7_2310d92e39a8["readJson()"]
  042cd95c_0b91_e683_3300_e13a43112471["read()"]
  042cd95c_0b91_e683_3300_e13a43112471 -->|calls| 97bd14d0_b97f_01c3_08d7_2310d92e39a8
  042cd95c_0b91_e683_3300_e13a43112471["read()"]
  97bd14d0_b97f_01c3_08d7_2310d92e39a8 -->|calls| 042cd95c_0b91_e683_3300_e13a43112471
  f1a34274_9212_49ef_a9b7_b1602eb3ab03["JSONObject()"]
  97bd14d0_b97f_01c3_08d7_2310d92e39a8 -->|calls| f1a34274_9212_49ef_a9b7_b1602eb3ab03
  ba40c0e5_bfda_bf16_1d14_ca522c009158["toString()"]
  97bd14d0_b97f_01c3_08d7_2310d92e39a8 -->|calls| ba40c0e5_bfda_bf16_1d14_ca522c009158
  style 97bd14d0_b97f_01c3_08d7_2310d92e39a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java lines 198–209

	private JSONObject readJson(InputStream in, Charset charset) throws Exception {
		try (in) {
			StringBuilder out = new StringBuilder();
			InputStreamReader reader = new InputStreamReader(in, charset);
			char[] buffer = new char[BUFFER_SIZE];
			int bytesRead;
			while ((bytesRead = reader.read(buffer)) != -1) {
				out.append(buffer, 0, bytesRead);
			}
			return new JSONObject(out.toString());
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free