Home / Class/ JsonPath Class — spring-boot Architecture

JsonPath Class — spring-boot Architecture

Architecture documentation for the JsonPath class in JsonMarshaller.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/JsonMarshaller.java lines 215–243

	private static final class JsonPath {

		private final String path;

		private JsonPath(String path) {
			this.path = path;
		}

		JsonPath resolve(String path) {
			if (this.path.endsWith(".")) {
				return new JsonPath(this.path + path);
			}
			return new JsonPath(this.path + "." + path);
		}

		JsonPath index(int index) {
			return resolve("[%d]".formatted(index));
		}

		@Override
		public String toString() {
			return this.path;
		}

		static JsonPath root() {
			return new JsonPath(".");
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free