Package
caplin.core

JsonUtility

Utility class that provides methods for manipulating and interacting with JSON.

Constructor Summary

Attributes Name and Description
caplin.core.JsonUtility()

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

Method Summary

Attributes Name and Description
<static> String toXml(Object oObject, String sTab)

Converts a object literal into it's XML representation, that can be later converted back to JSON with caplin.core.XmlUtility.toJson.

Constructor Detail

caplin.core.JsonUtility()

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

Method Detail

<static> String toXml(Object oObject, String sTab)

Converts a object literal into it's XML representation, that can be later converted back to JSON with caplin.core.XmlUtility.toJson.

Parameters
Object oObject The object literal you want to convert.
String sTab Tab delimiter to use (defaults to an empty string)
Returns
{String} XML representation of the passed object literal.