DataUtils Class
A few data utilities for formatting different data types.
Methods
parseJSON
(
Object
-
value
Parse a string into an Object.
Parameters:
-
value
StringThe loaded JSON string
Returns:
Object:
A JavaScript object.
parseXML
(
XML
static
-
text
Parse XML using the DOM. This is required when preloading XML or SVG.
Parameters:
-
text
StringThe raw text or XML that is loaded by XHR.
Returns:
XML:
An XML document