Interface Serializer

All Known Implementing Classes:
GsonSerializer

public interface Serializer
Interface for serializing raw Java telemetry structures into standard JSON strings.
  • Method Details

    • serialize

      String serialize(Map<String,Object> value) throws Exception
      Serializes the given telemetry map into its JSON representation.
      Parameters:
      value - the telemetry map to serialize
      Returns:
      the serialized JSON string
      Throws:
      Exception - if serialization fails
    • deserialize

      Map<String,Object> deserialize(String json) throws Exception
      Deserializes the given JSON string into a telemetry map.
      Parameters:
      json - the JSON string to deserialize
      Returns:
      the deserialized telemetry map
      Throws:
      Exception - if deserialization fails