JSON utility class.
More...
◆ Json()
fm.liveswitch.Json.Json |
( |
| ) |
|
◆ deserialize()
static <T> T fm.liveswitch.Json.deserialize |
( |
String |
valueJson | ) |
|
|
static |
Deserializes a value from a JSON string.
- Parameters
-
valueJson | The JSON string to deserialize. |
- Returns
- The deserialized value.
◆ getProvider()
Gets the JSON provider to use.
◆ serialize()
static <T> String fm.liveswitch.Json.serialize |
( |
T |
value | ) |
|
|
static |
Serializes a value to a JSON string.
- Parameters
-
value | The value to serialize. |
- Returns
- The serialized JSON string.
◆ setProvider()
Sets the JSON provider to use.