Package com.atlassian.diagnostics
Interface JsonMapper<T>
public interface JsonMapper<T>
Helper used to convert
alert details to and from JSON. The framework provides a
standard implementation based on the Jackson framework. Custom helpers can be provided when
defining new issues if the details need custom conversion.-
Method Summary
-
Method Details
-
getType
- Returns:
- the type of the
alert details
-
parseJson
Parses the provided JSON and returns an instance of the provided type, ornullif parsing failed- Parameters:
json- the JSON string to parse- Returns:
- the parsed instance, or
nullifjsonwas blank or parsing failed
-
toJson
Creates a JSON representation of the provided value- Parameters:
value- the value- Returns:
- the JSON representation of the provided value, or
nullifvaluewasnullor conversion to JSON failed.
-