Interface JsonSerializer

    • Method Detail

      • serialize

        byte[] serialize​(Object input)
        Serializes the given input into its encoded byte array form.
        Parameters:
        input - the object as input.
        Returns:
        the serialized output.
      • deserialize

        <T> T deserialize​(Class<T> target,
                          byte[] input)
        Deserializes raw input into the target class.
        Type Parameters:
        T - the generic type to deserialize into.
        Parameters:
        target - the target class.
        input - the raw input.
        Returns:
        the deserialized output.
      • deserialize

        <T> T deserialize​(TypeRef<T> target,
                          byte[] input)
        Deserializes raw input into the target type.
        Type Parameters:
        T - the type to deserialize into.
        Parameters:
        target - the target type.
        input - the raw input.
        Returns:
        the deserialized output.