Interface JsonConverterDelegate
- All Known Implementing Classes:
HttpMessageContentConverter
public interface JsonConverterDelegate
Delegate to abstract JSON type conversion in AssertJ support clases.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescription<T> Tmap(Object value, ResolvableType targetType) Map the given Object value to the giventargetType, via serialization and deserialization to and from JSON.static JsonConverterDelegateof(Iterable<HttpMessageConverter<?>> candidates) Create aJsonConverterDelegatefrom message converters.<T> Tread(String content, ResolvableType targetType) Convert JSON content to the giventargetType.
-
Method Details
-
read
Convert JSON content to the giventargetType.- Type Parameters:
T- the target type- Parameters:
content- the JSON contenttargetType- the target type- Returns:
- the decoded object
- Throws:
IOException
-
map
Map the given Object value to the giventargetType, via serialization and deserialization to and from JSON. This is useful for mapping generic maps and lists to higher level Objects.- Type Parameters:
T- the target type- Parameters:
value- the value to maptargetType- the target tyep- Returns:
- the decoded object
- Throws:
IOException
-
of
Create aJsonConverterDelegatefrom message converters.- Parameters:
candidates- the candidates
-