Skip to content

Commit

Permalink
#555 If useNativeTypes is true but an RDF number cannot be conver…
Browse files Browse the repository at this point in the history
…ted to JSON number, fall back to default logic
  • Loading branch information
anatoly-scherbakov committed Jan 12, 2025
1 parent 4fd6879 commit 9f6ad38
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5477,10 +5477,20 @@ <h3>Algorithm</h3>
<code>xsd:double</code> and its
<a>lexical form</a>
is a valid <code>xsd:integer</code> or <code>xsd:double</code>
according [[XMLSCHEMA11-2]], set <var>converted value</var>
to the result of converting the
<a>lexical form</a>
to a JSON <a>number</a>.</li>
according to [[XMLSCHEMA11-2]],
<ol>
<li>attempt to convert the <a>lexical form</a> to a <a>JSON number</a>
according to
<a data-cite="RFC8785#name-serialization-of-numbers">
JSON Serialization Scheme (JCS) 3.2.2.3 Serialization of Numbers
</a> procedure;
</li>
<li>
If the conversion is successful, set <var>converted value</var>
to its result.
</li>
</ol>
</li>
</ol>
</li>
<li class="changed">Otherwise, if <a>processing mode</a> is not `json-ld-1.0`,
Expand Down

0 comments on commit 9f6ad38

Please sign in to comment.