fm.liveswitch.JsonProvider Class Referenceabstract

Base class for all JSON provider implementations. More...

Public Member Functions

abstract< T > T deserialize (String valueJson)
 Deserializes a value from a JSON string. More...
 
abstract< T > String serialize (T value)
 Serializes a value to a JSON string. More...
 

Protected Member Functions

 JsonProvider ()
 

Detailed Description

Base class for all JSON provider implementations.

Constructor & Destructor Documentation

◆ JsonProvider()

fm.liveswitch.JsonProvider.JsonProvider ( )
protected

Member Function Documentation

◆ deserialize()

abstract <T> T fm.liveswitch.JsonProvider.deserialize ( String  valueJson)
abstract

Deserializes a value from a JSON string.

Parameters
valueJsonThe JSON string to deserialize.
Returns
The deserialized value.

◆ serialize()

abstract <T> String fm.liveswitch.JsonProvider.serialize ( value)
abstract

Serializes a value to a JSON string.

Parameters
valueThe value to serialize.
Returns
The serialized JSON string.