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)
JsonService
ObjectMapper
to modify the default
behavior.addDeserializerTo
in interface JsonService
public String parseObject(Object obj) throws com.fasterxml.jackson.core.JsonProcessingException
JsonService
parseObject
in interface JsonService
obj
- Object to be parsed.com.fasterxml.jackson.core.JsonProcessingException
public boolean notSerialized(Class<?> target)
Copyright © 2014–2022 ImageJ. All rights reserved.