public class DefaultJsonService extends Object implements JsonService
| Constructor and Description |
|---|
DefaultJsonService(ObjectService objectService)
Constructs and initializes a JsonService with an
ObjectService. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeserializerTo(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Adds a deserializer to a given
ObjectMapper to modify the default
behavior. |
boolean |
notSerialized(Class<?> target) |
String |
parseObject(Object obj)
Parses the given Object.
|
public DefaultJsonService(ObjectService objectService)
ObjectService.objectService - public void addDeserializerTo(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
JsonServiceObjectMapper to modify the default
behavior.addDeserializerTo in interface JsonServicepublic String parseObject(Object obj) throws com.fasterxml.jackson.core.JsonProcessingException
JsonServiceparseObject in interface JsonServiceobj - Object to be parsed.com.fasterxml.jackson.core.JsonProcessingExceptionpublic boolean notSerialized(Class<?> target)
Copyright © 2014–2022 ImageJ. All rights reserved.