Caplin Trader 4.7.1

Class: module:caplin/core/JsonUtility

module:caplin/core/JsonUtility

Constructor

new module:caplin/core/JsonUtility()

This is a static class that never needs to be instantiated.

Methods

(static) toXml(oObject, sTabopt) → {String}

Converts a object literal into it's XML representation, that can be later converted back to JSON with module:caplin/core/XmlUtility.toJson.
Parameters:
Name Type Attributes Default Description
oObject Object The object literal you want to convert.
sTab String <optional>
'' Tab delimiter to use.
Returns:
XML representation of the passed object literal.
Type
String