Added support fot dots in keys

without this change it's impossible to work with jsons that have dots in keys
    with this change that's possible again

    fixes #269
This commit is contained in:
Marcin Grzejszczak
2017-04-26 12:12:17 +02:00
parent cf2e7e0feb
commit cf52e6baa6
21 changed files with 343 additions and 156 deletions

View File

@@ -1,9 +1,12 @@
package com.example.loan.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
public class FraudServiceRequest {
@JsonProperty("client.id")
private String clientId;
private BigDecimal loanAmount;

View File

@@ -1,9 +1,12 @@
package com.example.loan.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class FraudServiceResponse {
private FraudCheckStatus fraudCheckStatus;
@JsonProperty("rejection.reason")
private String rejectionReason;
public FraudServiceResponse() {