diff --git a/model/src/main/scala/za/co/absa/atum/model/utils/SerializationUtils.scala b/model/src/main/scala/za/co/absa/atum/model/utils/SerializationUtils.scala index f690bb7ee..fcd95568d 100644 --- a/model/src/main/scala/za/co/absa/atum/model/utils/SerializationUtils.scala +++ b/model/src/main/scala/za/co/absa/atum/model/utils/SerializationUtils.scala @@ -66,15 +66,20 @@ object SerializationUtils { private case object ResultValueTypeSerializer extends CustomSerializer[ResultValueType](format => ( { case JString(resultValType) => resultValType match { - case "String" => String - case "Long" => Long - case "BigDecimal" => BigDecimal - case "Double" => Double + case "String" => String + case "Long" => Long + case "BigDecimal" => BigDecimal + case "Double" => Double } case JNull => null }, { - case resultValType: ResultValueType => JString(resultValType.getClass.getSimpleName.replace("$","")) + case resultValType: ResultValueType => resultValType match { + case String => JString("String") + case Long => JString("Long") + case BigDecimal => JString("BigDecimal") + case Double => JString("Double") + } })) }