fn:xml-to-json: Amendments #1493
Labels
Editorial
Minor typos, wording clarifications, example fixes, etc.
PR Pending
A PR has been raised to resolve this issue
XQFO
An issue related to Functions and Operators
Maybe I was too quick in waving through #1476 as I believe that the current version is a bit sketchy. It says:
X
, we cannot ensure that it will be a valid JSON number, so I assume that the changed string needs to be validated before being output?-01
.In many cases, the numbers to be output will be the result of an earlier
json-to-xml
conversion. If it is generated with XPath numbers, we shouldn’t encounter plus signs, redundant leading zeros etc. either, so I would suggest getting rid of all post-processing. We could simply say:If we do want to tweak the string value, we should provide a complete set of rules; maybe something like…
…but that’s still fuzzy (for example, it lacks the explanation of what redundant zero digits are).
The text was updated successfully, but these errors were encountered: