Archived
deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.
This commit is contained in:
@@ -149,6 +149,47 @@ Class JsonUtil
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="properties">Properties
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="Hi_Common_JsonUtil_CompactNanOptions_" data-uid="Hi.Common.JsonUtil.CompactNanOptions*"></a>
|
||||
|
||||
<h3 id="Hi_Common_JsonUtil_CompactNanOptions" data-uid="Hi.Common.JsonUtil.CompactNanOptions">
|
||||
CompactNanOptions
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Compact (single-line) serializer options supporting NaN / Infinity /
|
||||
-Infinity as quoted literal strings. This is the exact leaf encoding
|
||||
<a class="xref" href="Hi.Common.JsonUtil.html#Hi_Common_JsonUtil_ToLeafCompactJsonString_System_Text_Json_Nodes_JsonNode_System_Text_Json_JsonSerializerOptions_">ToLeafCompactJsonString(JsonNode, JsonSerializerOptions)</a> uses, exposed so other
|
||||
serialization paths (e.g. freezing a parse tree to UTF-8 bytes) can
|
||||
guarantee a byte-identical projection after a serialize → parse
|
||||
round-trip. Null-valued entries are written explicitly.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static JsonSerializerOptions CompactNanOptions { get; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions">JsonSerializerOptions</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="methods">Methods
|
||||
</h2>
|
||||
|
||||
@@ -247,7 +288,12 @@ Creates missing intermediate objects as needed.</p>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.nodes.jsonnode">JsonNode</a> that may hold
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>, or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>.</p>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>, or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>.
|
||||
Also maps the named floating-point literal strings <code>“NaN”</code>,
|
||||
<code>“Infinity”</code> and <code>"-Infinity"</code> — the quoted form
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.serialization.jsonnumberhandling#system-text-json-serialization-jsonnumberhandling-allownamedfloatingpointliterals">AllowNamedFloatingPointLiterals</a> writes
|
||||
for those values — back to their <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> constants, so a
|
||||
node re-parsed from serialized JSON reads the same as the live value.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user