object 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.
object |
|
object |
|
object |
|
object |
|
object |
|
object |
|
class |
|
class |
|
object |
|
object |
|
object |
|
object |
|
object |
|
interface PartyObjectMapper |
|
object |
|
object |
|
object |
|
class |
|
class |
|
object |
|
abstract class |
|
object |
|
abstract class |
val |
fun createDefaultMapper(rpc: CordaRPCOps, factory: <ERROR CLASS> = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): <ERROR CLASS>
Creates a Jackson ObjectMapper that uses RPC to deserialise parties from string names. |
|
fun createInMemoryMapper(identityService: IdentityService, factory: <ERROR CLASS> = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): <ERROR CLASS>
Creates a Jackson ObjectMapper that uses an IdentityService directly inside the node to deserialise parties from string names. |
|
fun createNonRpcMapper(factory: <ERROR CLASS> = JsonFactory(), fullParties: Boolean = false): <ERROR CLASS>
For testing or situations where deserialising parties is not required |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |