Score_ - the actual score typepublic class ScoreJacksonJsonSerializer<Score_ extends Score<Score_>>
extends com.fasterxml.jackson.databind.JsonSerializer<Score_>
Score type.
For example: use @JsonSerialize(using = ScoreJacksonJsonSerializer.class) @JsonDeserialize(using = HardSoftScoreJacksonJsonDeserializer.class)
on a HardSoftScore score field and it will marshalled to JSON as "score":"-999hard/-999soft".
Score| Constructor and Description |
|---|
ScoreJacksonJsonSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(Score_ score,
com.fasterxml.jackson.core.JsonGenerator generator,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
public void serialize(Score_ score, com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<Score_ extends Score<Score_>>IOExceptionCopyright © 2006–2017 JBoss by Red Hat. All rights reserved.