public class JacksonSupport
Utilities and serialisers for working with JSON representations of basic types. This adds Jackson support for the java.time API, some core types, and Kotlin data classes.
Note that Jackson can also be used to serialise/deserialise other formats such as Yaml and XML.
Modifier and Type | Field and Description |
---|---|
static JacksonSupport |
INSTANCE
Utilities and serialisers for working with JSON representations of basic types. This adds Jackson support for
the java.time API, some core types, and Kotlin data classes.
|
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
createDefaultMapper(CordaRPCOps rpc,
com.fasterxml.jackson.core.JsonFactory factory)
Mapper requiring RPC support to deserialise parties from names
|
static com.fasterxml.jackson.databind.ObjectMapper |
createDefaultMapper(CordaRPCOps rpc)
Mapper requiring RPC support to deserialise parties from names
|
static com.fasterxml.jackson.databind.ObjectMapper |
createInMemoryMapper(IdentityService identityService,
com.fasterxml.jackson.core.JsonFactory factory)
For testing with an in memory identity service
|
static com.fasterxml.jackson.databind.ObjectMapper |
createInMemoryMapper(IdentityService identityService)
For testing with an in memory identity service
|
static com.fasterxml.jackson.databind.ObjectMapper |
createNonRpcMapper(com.fasterxml.jackson.core.JsonFactory factory)
For testing or situations where deserialising parties is not required
|
static com.fasterxml.jackson.databind.ObjectMapper |
createNonRpcMapper()
For testing or situations where deserialising parties is not required
|
com.fasterxml.jackson.databind.Module |
getCordaModule() |
public static JacksonSupport INSTANCE
Utilities and serialisers for working with JSON representations of basic types. This adds Jackson support for the java.time API, some core types, and Kotlin data classes.
Note that Jackson can also be used to serialise/deserialise other formats such as Yaml and XML.
public com.fasterxml.jackson.databind.Module getCordaModule()
public static com.fasterxml.jackson.databind.ObjectMapper createDefaultMapper(CordaRPCOps rpc, com.fasterxml.jackson.core.JsonFactory factory)
Mapper requiring RPC support to deserialise parties from names
public static com.fasterxml.jackson.databind.ObjectMapper createDefaultMapper(CordaRPCOps rpc)
Mapper requiring RPC support to deserialise parties from names
public static com.fasterxml.jackson.databind.ObjectMapper createNonRpcMapper(com.fasterxml.jackson.core.JsonFactory factory)
For testing or situations where deserialising parties is not required
public static com.fasterxml.jackson.databind.ObjectMapper createNonRpcMapper()
For testing or situations where deserialising parties is not required
public static com.fasterxml.jackson.databind.ObjectMapper createInMemoryMapper(IdentityService identityService, com.fasterxml.jackson.core.JsonFactory factory)
For testing with an in memory identity service
public static com.fasterxml.jackson.databind.ObjectMapper createInMemoryMapper(IdentityService identityService)
For testing with an in memory identity service