Package de.xima.fc.common.json
Interface IJsonPrimitiveConverter
-
- All Known Implementing Classes:
SimpleJsonPrimitiveConverter
public interface IJsonPrimitiveConverter
Converter for converting between JSON primitives and strings.- Since:
- 8.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
deserializePrimitive(SerializedPrimitive primitive)
Deserializes a primitive from a string, as serialized byserializePrimitive(Object)
.SerializedPrimitive
serializePrimitive(Object primitive)
Serializes a primitive to a string.
-
-
-
Method Detail
-
deserializePrimitive
Object deserializePrimitive(SerializedPrimitive primitive)
Deserializes a primitive from a string, as serialized byserializePrimitive(Object)
.- Parameters:
primitive
- The primitive to deserialize.- Returns:
- The deserialized primitive.
-
serializePrimitive
SerializedPrimitive serializePrimitive(Object primitive)
Serializes a primitive to a string.- Parameters:
primitive
- The primitive to serialize.- Returns:
- The serialized primitive.
-
-