diff --git a/src/main/java/org/gcube/accounting/service/resources/RecordManagement.java b/src/main/java/org/gcube/accounting/service/resources/RecordManagement.java index 5ade13d..21b577d 100644 --- a/src/main/java/org/gcube/accounting/service/resources/RecordManagement.java +++ b/src/main/java/org/gcube/accounting/service/resources/RecordManagement.java @@ -74,7 +74,8 @@ public class RecordManagement { AccountingPersistenceQuery accountingPersistenceQuery = AccountingPersistenceQueryFactory.getInstance(); Record record = accountingPersistenceQuery.getRecord(recordId, type); - return Response.status(Status.OK).entity(record).type(AccountingResource.APPLICATION_JSON_CHARSET_UTF_8).build(); + String ret = DSMapper.marshal(record); + return Response.status(Status.OK).entity(ret).type(AccountingResource.APPLICATION_JSON_CHARSET_UTF_8).build(); }