fm.liveswitch.Json Class Reference

JSON utility class. More...

Public Member Functions

 Json ()
 

Static Public Member Functions

static< T > T deserialize (String valueJson)
 Deserializes a value from a JSON string. More...
 
static fm.liveswitch.JsonProvider getProvider ()
 Gets the JSON provider to use. More...
 
static< T > String serialize (T value)
 Serializes a value to a JSON string. More...
 
static void setProvider (fm.liveswitch.JsonProvider value)
 Sets the JSON provider to use. More...
 

Detailed Description

JSON utility class.

Constructor & Destructor Documentation

◆ Json()

fm.liveswitch.Json.Json ( )

Member Function Documentation

◆ deserialize()

static <T> T fm.liveswitch.Json.deserialize ( String  valueJson)
static

Deserializes a value from a JSON string.

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

◆ getProvider()

static fm.liveswitch.JsonProvider fm.liveswitch.Json.getProvider ( )
static

Gets the JSON provider to use.

◆ serialize()

static <T> String fm.liveswitch.Json.serialize ( value)
static

Serializes a value to a JSON string.

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

◆ setProvider()

static void fm.liveswitch.Json.setProvider ( fm.liveswitch.JsonProvider  value)
static

Sets the JSON provider to use.