Interface SerdeService
@Beta
public interface SerdeService
Provides utility methods into Spinnaker's standard internal serialization libraries.
-
Method Summary
Modifier and TypeMethodDescription<T> TDeserializes the givenjsonblob into an object oftype.<T> TAttempts to map the givenobjto the giventype.<T> TAttempts to map the givenobjatpointerto the giventype.Serializes the givenobjto a JSON string.
-
Method Details
-
toJson
Serializes the givenobjto a JSON string. -
fromJson
Deserializes the givenjsonblob into an object oftype. -
mapTo
Attempts to map the givenobjto the giventype. -
mapTo
Attempts to map the givenobjatpointerto the giventype.- Parameters:
pointer- Must be a JSONPath-compatible pointer
-