Converts a JSON string to an XML representation.
A JSON string to convert to XML.
Converts a JSON string to an XML representation.
Visual Basic |
---|
Public Function JSONtoXML( _ ByVal JSON As String _ ) As String |
A JSON string to convert to XML.
An XML markup of the JSON string.
All Chromium DevTools Inspector Protocol methods require JSON for input and return JSON for output.
Unless you have a JSON parser you can use an XML parser as an alternative by converting the JSON output to XML and processing it with MSXML COM library and XPath queries.
This example demonstrates how to handle OnDevToolsWebSocket event for CSS.styleSheetAdded Inspector Protocol Event and convert the JSON data to XML data.