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

toJson() — spring-boot Function Reference

Architecture documentation for the toJson() function in ImagePlatform.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  75653e6c_8e40_3a68_c52b_e76491e8707e["toJson()"]
  58994152_b05e_a16f_283c_b6dc2c064895["get()"]
  75653e6c_8e40_3a68_c52b_e76491e8707e -->|calls| 58994152_b05e_a16f_283c_b6dc2c064895
  cd94b747_9104_8dcc_ad49_f9a529f90ae8["toString()"]
  75653e6c_8e40_3a68_c52b_e76491e8707e -->|calls| cd94b747_9104_8dcc_ad49_f9a529f90ae8
  style 75653e6c_8e40_3a68_c52b_e76491e8707e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ImagePlatform.java lines 112–122

	public String toJson() {
		ObjectNode json = SharedJsonMapper.get().createObjectNode();
		json.put("os", this.os);
		if (StringUtils.hasText(this.architecture)) {
			json.put("architecture", this.architecture);
		}
		if (StringUtils.hasText(this.variant)) {
			json.put("variant", this.variant);
		}
		return json.toString();
	}

Subdomains

Calls

Frequently Asked Questions

What does toJson() do?
toJson() is a function in the spring-boot codebase.
What does toJson() call?
toJson() calls 2 function(s): get, toString.

Analyze Your Own Codebase

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

Try Supermodel Free