JacksonSupport.createDefaultMapper - corda

corda / net.corda.client.jackson / JacksonSupport / createDefaultMapper

# createDefaultMapper

`@JvmStatic @JvmOverloads fun createDefaultMapper(rpc: CordaRPCOps, factory: JsonFactory = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): ObjectMapper`

Creates a Jackson ObjectMapper that uses RPC to deserialise parties from string names.

### Parameters

`fuzzyIdentityMatch` - If false, fields mapped to Party objects must be in X.500 name form and precisely match an identity known from the network map. If true, the name is matched more leniently but if the match is ambiguous a JsonParseException is thrown.

`fullParties` - If true then Party objects will be serialised as JSON objects, with the owning key serialised in addition to the name. For PartyAndCertificate objects the cert path will be included.