Class
caplin.streamlink

JsonHandler

Handler for parsing and patching JSON objects

Constructor Summary

Attributes Name and Description
caplin.streamlink.JsonHandler()

Method Summary

Attributes Name and Description
String format(Object obj)

Serializes a plain language object to its JSON string representation.

Object parse(String jsonString)

Parses a JSON string into a platform specific representation.

Object patch(Object existingObject, String jsonPatchString)

Patches a platform specific JSON representation with an RFC 6902 JSON patch string.

Constructor Detail

caplin.streamlink.JsonHandler()

Method Detail

String format(Object obj)

Serializes a plain language object to its JSON string representation.

Parameters
Object obj a plain language object
Throws
Exception if conversion fails
Returns
{String} a JSON string representation of the object

Object parse(String jsonString)

Parses a JSON string into a platform specific representation.

Parameters
String jsonString the string to parse
Returns
{Object} a platform specific representation of the JSON object

Object patch(Object existingObject, String jsonPatchString)

Patches a platform specific JSON representation with an RFC 6902 JSON patch string.

Parameters
Object existingObject the platform specific JSON representation
String jsonPatchString the json patch string in RFC 6902 format
Returns
{Object} a platform specific representation of the patched JSON object