When transforming JSON documents into a tabular format, you might stumble upon certain keys that produce an error message.
This document is valid JSON, but generates an error, such as "XPath syntax error at char 0 in {80x}:
Separator needed after numeric literal" when parsing it in Data Virtuality.
|
|
This is due to the fact that Data Virtuality internally transforms the JSON document into an XML document for easier parsing. Since an identifier in XML may not start with a number, it gets escaped and rewritten to _u0038_0x60. Hence, you will need to pass this value as an XPath expression for referring to your JSON key.
|
In order to look up this transformed key name, you can run the XMLESCAPENAME function (SELECT XMLESCAPENAME('80x60', true)) which will return the correct name of the node in the XML document.