This commit is contained in:
2026-01-26 03:40:40 +08:00
parent a847916af6
commit a128d423b9
30 changed files with 163 additions and 125 deletions
@@ -160,7 +160,9 @@ Class JsonUtil
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Navigates or creates a JSON array path in the source JSON object.
Creates missing intermediate objects and the final array as needed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -170,15 +172,18 @@ Class JsonUtil
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>srcdst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.nodes.jsonobject">JsonObject</a></dt>
<dd></dd>
<dd><p>The source JSON object to navigate.</p>
</dd>
<dt><code>jsonObjectPath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd></dd>
<dd><p>The path segments to navigate through. The last segment will be treated as an array.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.nodes.jsonarray">JsonArray</a></dt>
<dd></dd>
<dd><p>The JSON array at the specified path, creating it if it doesn't exist. Returns null if the path is empty.</p>
</dd>
</dl>
@@ -198,7 +203,9 @@ Class JsonUtil
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Navigates or creates a JSON object path in the source JSON object.
Creates missing intermediate objects as needed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -208,15 +215,18 @@ Class JsonUtil
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>srcdst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.nodes.jsonobject">JsonObject</a></dt>
<dd></dd>
<dd><p>The source JSON object to navigate.</p>
</dd>
<dt><code>jsonObjectPath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd></dd>
<dd><p>The path segments to navigate through.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.nodes.jsonobject">JsonObject</a></dt>
<dd></dd>
<dd><p>The JSON object at the specified path, creating it if it doesn't exist.</p>
</dd>
</dl>