public class HardSoftScoreJacksonJsonDeserializer extends AbstractScoreJacksonJsonDeserializer<HardSoftScore>
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"
.
Constructor and Description |
---|
HardSoftScoreJacksonJsonDeserializer() |
Modifier and Type | Method and Description |
---|---|
HardSoftScore |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, unwrappingDeserializer
public HardSoftScoreJacksonJsonDeserializer()
public HardSoftScore deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<HardSoftScore>
IOException
Copyright © 2006–2017 JBoss by Red Hat. All rights reserved.