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

parseMapInternal() — spring-boot Function Reference

Architecture documentation for the parseMapInternal() function in BasicJsonParser.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  ac13e46b_0c90_9e3c_0dd8_0607a0eded32["parseMapInternal()"]
  a5cd6647_06f8_682c_a46f_f0fb7d133771["parseMap()"]
  a5cd6647_06f8_682c_a46f_f0fb7d133771 -->|calls| ac13e46b_0c90_9e3c_0dd8_0607a0eded32
  e433e134_9eb1_8de3_04b7_4cd35d5455a3["parseInternal()"]
  e433e134_9eb1_8de3_04b7_4cd35d5455a3 -->|calls| ac13e46b_0c90_9e3c_0dd8_0607a0eded32
  0607d56f_4e07_0b6b_1105_0ecfd309fdb4["trimEdges()"]
  ac13e46b_0c90_9e3c_0dd8_0607a0eded32 -->|calls| 0607d56f_4e07_0b6b_1105_0ecfd309fdb4
  04504695_f953_1d2a_a975_574b64090b0d["tokenize()"]
  ac13e46b_0c90_9e3c_0dd8_0607a0eded32 -->|calls| 04504695_f953_1d2a_a975_574b64090b0d
  e433e134_9eb1_8de3_04b7_4cd35d5455a3["parseInternal()"]
  ac13e46b_0c90_9e3c_0dd8_0607a0eded32 -->|calls| e433e134_9eb1_8de3_04b7_4cd35d5455a3
  style ac13e46b_0c90_9e3c_0dd8_0607a0eded32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java lines 81–99

	private Map<String, Object> parseMapInternal(int nesting, String json) {
		Map<String, Object> map = new LinkedHashMap<>();
		json = trimEdges(json, '{', '}').trim();
		for (String pair : tokenize(json)) {
			String[] split = StringUtils.split(pair, ":");
			@Nullable String[] values = (split != null) ? StringUtils.trimArrayElements(split) : null;
			Assert.state(values != null, () -> "Unable to parse '%s'".formatted(pair));
			String rawKey = values[0];
			String rawValue = values[1];
			Assert.state(rawKey != null, () -> "rawKew is null in '%s'".formatted(pair));
			Assert.state(rawKey.startsWith("\"") && rawKey.endsWith("\""),
					"Expecting double-quotes around field names");
			String key = trimEdges(rawKey, '"', '"');
			Assert.state(rawValue != null, () -> "rawValue is null in '%s'".formatted(pair));
			Object value = parseInternal(nesting, rawValue);
			map.put(key, value);
		}
		return map;
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does parseMapInternal() do?
parseMapInternal() is a function in the spring-boot codebase.
What does parseMapInternal() call?
parseMapInternal() calls 3 function(s): parseInternal, tokenize, trimEdges.
What calls parseMapInternal()?
parseMapInternal() is called by 2 function(s): parseInternal, parseMap.

Analyze Your Own Codebase

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

Try Supermodel Free