Interface IJsonPrimitiveConverter

  • All Known Implementing Classes:
    SimpleJsonPrimitiveConverter

    public interface IJsonPrimitiveConverter
    Converter for converting between JSON primitives and strings.
    Since:
    8.2.0
    • Method Detail

      • deserializePrimitive

        Object deserializePrimitive​(SerializedPrimitive primitive)
        Deserializes a primitive from a string, as serialized by serializePrimitive(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.