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

peek() — spring-boot Function Reference

Architecture documentation for the peek() function in JSONStringer.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e532399d_15ce_1aa0_3023_65e4c0f2706a["peek()"]
  58f496c6_04b9_830b_5d94_ed503c408b24["close()"]
  58f496c6_04b9_830b_5d94_ed503c408b24 -->|calls| e532399d_15ce_1aa0_3023_65e4c0f2706a
  f7850c98_ffd7_9766_27a1_8b42d7687b07["beforeKey()"]
  f7850c98_ffd7_9766_27a1_8b42d7687b07 -->|calls| e532399d_15ce_1aa0_3023_65e4c0f2706a
  d1b30bcd_285c_293e_1e7e_4dea1cefb8c1["beforeValue()"]
  d1b30bcd_285c_293e_1e7e_4dea1cefb8c1 -->|calls| e532399d_15ce_1aa0_3023_65e4c0f2706a
  style e532399d_15ce_1aa0_3023_65e4c0f2706a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/json-shade/java/org/springframework/boot/cli/json/JSONStringer.java lines 213–218

	private Scope peek() throws JSONException {
		if (this.stack.isEmpty()) {
			throw new JSONException("Nesting problem");
		}
		return this.stack.get(this.stack.size() - 1);
	}

Domain

Subdomains

Frequently Asked Questions

What does peek() do?
peek() is a function in the spring-boot codebase.
What calls peek()?
peek() is called by 3 function(s): beforeKey, beforeValue, close.

Analyze Your Own Codebase

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

Try Supermodel Free